<< < 155 156 157 158 159 160 161 162 163 164 165 > >>   Sort: Date

How can printf use f for type double, if scanf requires lf?
Someone told me it was wrong to use %lf with printf. How can printf use %f for type double, if scanf requires %lf? It's true that printf's %f specifier works with both float and double arguments Due to the ``default argument promotions'' (which apply in variable-length argument lists values of type ...
2015-11-06, 1748👍, 0💬

What’s a bubbled event?
What’s a bubbled event? When you have a complex control, likeDataGrid, writing an event processing routine for each object (cell, button,row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of itsconstituents.
2014-03-06, 1748👍, 0💬

State True or False: Any ODBC-compliant database can be accessed through ASP.NET: * True or * False
State True or False: Any ODBC-compliant database can be accessed through ASP.NET: * True or * False True
2014-07-11, 1747👍, 0💬

What is the difference between Server.Transfer and Response.Redirect?
What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other? Server.Transfer() : client is shown as it is on the requesting page only, but the all the content is of the requested page. Data can be persist accros the pages using Context.Item collection,...
2014-01-17, 1747👍, 0💬

What’s Singleton activation mode?
What’s Singleton activation mode? A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease.
2013-11-15, 1746👍, 0💬

What does it mean to have quoted_identifier on? What are the implications of having it off?
What does it mean to have quoted_identifier on? What are the implications of having it off? SET QUOTED_IDENTIFIER ON- Causes SQL Server to follow the SQL-92 rules regarding quotation mark delimiting identifiers and literal strings. Identifiers delimited by double quotation marks can be either Transa...
2014-10-15, 1742👍, 0💬

Name atleast two methods of response object other than Transfer.
Name atleast two methods of response object other than Transfer. a) Response.ClearContent( ) Clears the content of the current output stream. b) Response.ClearHeaders( ) Clears the HTTP headers from the current output stream.
2014-10-01, 1739👍, 0💬

What is Serialization in .NET?
What is Serialization in .NET? Anwer1 The serialization is the process of converting the objects into stream of bytes. they or used for transport the objects(via remoting) and persist objects(via files and databases) Answer2 When developing smaller applications that do not have a database (or other ...
2013-12-02, 1738👍, 0💬

How do you define an integer in SQL Server?
How do you define an integer in SQL Server? We define integer in Sql server as var_name int
2014-09-17, 1736👍, 0💬

What namespaces are necessary to create a localized application?
What namespaces are necessary to create a localized application? What namespaces are necessary to create a localized application? * System.Globalization * System.Globalization and System.Resources. * System.Resources. * System.Array System.Resources
2014-06-27, 1735👍, 0💬

You cant use dynamically-allocated memory after you free it?
You cant use dynamically-allocated memory after you free it? No. Some early documentation for malloc stated that the contents of freed memory were ``left undisturbed,'' but this ill-advised guarantee was never universal and is not required by the C Standard. Few programmers would use the contents of...
2016-04-04, 1733👍, 0💬

People seem to make a point of distinguishing between ...
People seem to make a point of distinguishing between implementation-defined, unspecified, and undefined behavior. What do these mean? First of all, all three of these represent areas in which the C Standard does not specify exactly what a particular construct, or a program which uses it, must do. T...
2015-11-23, 1733👍, 0💬

Why isn't a pointer null after calling free? ...
Why isn't a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it's been freed? When you call free, the memory pointed to by the passed pointer is freed, but the value of the pointer in the caller probably remains unchanged, because C's pass-by-value sem...
2016-04-04, 1732👍, 0💬

How can I print a character in a printf format string?
How can I print a '%' character in a printf format string? I tried \%, but it didn't work. Simply double the percent sign: %% . The reason it's tricky to print % signs with printf is that % is essentially printf's escape character. Whenever printf sees a %, it expects it to be followed by a characte...
2015-11-09, 1729👍, 0💬

What are the authentication methods in .NET?
What are the authentication methods in .NET? There are 4 types of authentications. 1.WINDOWS AUTHENTICATION 2.FORMS AUTHENTICATION 3.PASSPORT AUTHENTICATION 4.NONE/CUSTOM AUTHENTICATION The authentication option for the ASP.NET application is specified by using the tag in the Web.config file, as sho...
2013-11-26, 1728👍, 0💬

How to manage pagination in a page?
How to manage pagination in a page? Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself.
2013-10-02, 1728👍, 0💬

What is namespaces?
What is namespaces? It is a logical group of related classes and interfaces and that can be used byany language targeting the .net framework.
2013-12-06, 1727👍, 0💬

I am allocating structures which contain pointers to other dynamically ....
I'm allocating structures which contain pointers to other dynamically-allocated objects. When I free a structure, do I also have to free each subsidiary pointer? Yes. malloc knows nothing about structure declarations or about the contents of allocated memory; it especially does not know whether allo...
2016-03-31, 1726👍, 0💬

What are cursors? Name four type of cursors and when each one would be applied?
What are cursors? Name four type of cursors and when each one would be applied? Opening a cursor on a result set allows processing the result set one row at a time. The four API server cursor types supported by SQL Server are: a) Static cursors b) Dynamic cursors c) Forward-only cursors d) Keyset-dr...
2014-10-17, 1726👍, 0💬

What is a good way to implement complex numbers in C?
What is a good way to implement complex numbers in C? It is straightforward to define a simple structure and some arithmetic functions to manipulate them. C99 supports complex as a standard type. Here is a tiny example, to give you a feel for it: typedef struct { double real; double imag; } complex;...
2015-06-19, 1724👍, 0💬

Is there any inbuilt paging (for example shoping cart, which will show next 10 records without refreshing) in ASP? How will you
Is there any inbuilt paging (for example shoping cart, which will show next 10 records without refreshing) in ASP? How will you do pating? Use DataGrid control which has in-built paging features for the purpose.
2014-09-26, 1723👍, 0💬

What will be output for the given code?
What will be output for the given code? What will be output for the given code? Dim I as integer = 5 Do I = I + 2 Response.Write (I &amp; " ") Loop Until I &gt; 10 * 5 8 * 5 7 9 * 7 9 11 * Errors out 7 9 11 (if corrected)
2014-09-02, 1723👍, 0💬

What is the difference between memcpy and memmove?
What is the difference between memcpy and memmove? memmove offers guaranteed behavior if the memory regions pointed to by the source and destination arguments overlap. memcpy makes no such guarantee, and may therefore be more efficiently implementable. When in doubt, it's safer to use memmove. It se...
2015-07-16, 1722👍, 0💬

State True or False: Static method cannot be overridden: * True or * False
State True or False: Static method cannot be overridden: * True or * False True
2014-06-20, 1721👍, 0💬

<< < 155 156 157 158 159 160 161 162 163 164 165 > >>   Sort: Date