<< < 112 113 114 115 116 117 118 119 120 121 122 > >>   Sort: Date

What is a dangling pointer? C++
What is a dangling pointer? C++ A dangling pointer arises when you use the address of an object after its lifetime is over. This may occur in situations like returning addresses of the automatic variables from a function or using the address of the memory block after it is freed. The following code ...
2012-01-06, 2917👍, 0💬

Tell how to check whether a linked list is circular C++
Tell how to check whether a linked list is circular C++ Create two pointers, each set to the start of the list. Update each as follows: while (pointer1) { pointer1 = pointer1-&gt;next; pointer2 = pointer2-&gt;next; if (pointer2) pointer2=pointer2-&gt;next ;if (pointer1 == pointer2) { pri...
2012-01-31, 2915👍, 0💬

How do I initialize a pointer to a function?
How do I initialize a pointer to a function? This is the way to initialize a pointer to a function void fun(int a) { } void main() { void (*fp)(int); fp=fun; fp(1); }
2012-03-12, 2912👍, 0💬

What should be the return type for a cursor variable. Can we use a scalar data type as return type?
What should be the return type for a cursor variable. Can we use a scalar data type as return type? The return type of a cursor variable can be %ROWTYPE or record_name%TYPE or a record type or a ref cursor type. A scalar data type like number or varchar can’t be used but a record type may evaluate t...
2011-11-01, 2911👍, 0💬

What is Boyce Codd Normal form? C++
What is Boyce Codd Normal form? C++ A relation schema R is in BCNF with respect to a set F of functional dependencies if for all functional dependencies in F+ of the form a-&gt;b, where a and b is a subset of R, at least one of the following holds: * a-&gt;b is a trivial functional dependenc...
2012-01-19, 2907👍, 0💬

What problem does the namespace feature solve?
What problem does the namespace feature solve? Multiple providers of libraries might use common global identifiers causing a name collision when an application tries to link with two or more such libraries. The namespace feature surrounds a library’s external declarations with a unique namespace tha...
2012-03-22, 2905👍, 0💬

What are different modes of forms in which you can start Forms Server and which one is default ?
What are different modes of forms in which you can start Forms Server and which one is default ? You can start forms server in SOCKET or SERVLET by defualt Forms are configured to start in socket mode.
2011-12-08, 2902👍, 0💬

How does Java handle integer overflows and underflows?
How does Java handle integer overflows and underflows? It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.
2013-06-06, 2901👍, 0💬

What happens if you don't give cache size while defining Concurrent Manager ?
What happens if you don't give cache size while defining Concurrent Manager ? Lets first understand what is cache size in Concurrent Manager. When Manager picks request from FND CONCURRENT REQUESTS Queues, it will pick up number of requests defined by cache size in one shot and will work on them bef...
2011-12-13, 2899👍, 0💬

Whats is location of access_log file ?
Whats is location of access_log file ? access_log file by default is located in $IAS_ORACLE_HOME/ Apache/Apache/logs. Location of this file is defined in httpd.conf by patameter CustomLog or TransferLog
2011-11-23, 2899👍, 0💬

What is the two main roles of Operating System?
What is the two main roles of Operating System? As a resource manager As a virtual machine
2012-01-23, 2895👍, 0💬

When do you use WHERE clause and when do you use HAVING clause?
When do you use WHERE clause and when do you use HAVING clause? The WHERE condition lets you restrict the rows selected to those that satisfy one or more conditions. Use the HAVING clause to restrict the groups of returned rows to those groups for which the specified condition is TRUE.
2011-12-06, 2893👍, 0💬

What if I do not provide the String array as the argument to the method?
What if I do not provide the String array as the argument to the method? Program compiles but throws a runtime error "NoSuchMethodError".
2013-05-03, 2892👍, 0💬

What values are be stored in 'a' after the above sample code is run if it is run on a system where pointers are two bytes lo
char a; char ca[] = {'a','e','i','o','u','y'}; char* pca = ca; pca += 2; a = *pca; What values are be stored in 'a' after the above sample code is run if it is run on a system where pointers are two bytes long? 1) a = 'u' 2) a = 'e' 3) a = 'i' 4) The code is illegal. Only a pointer can be added to a...
2012-04-20, 2887👍, 0💬

Can the default values be assigned to actual parameters?
Can the default values be assigned to actual parameters? Yes. In such case you don’t need to specify any value and the actual parameter will take the default value provided in the function definition.
2011-10-20, 2885👍, 0💬

When creating a C# Class Library project, what is the name of the supplementary file ...
When creating a C# Class Library project, what is the name of the supplementary file ... When creating a C# Class Library project, what is the name of the supplementary file that Visual Studio.NET creates that contains General Information about the assembly? * AssemblyInfo.xml * AssemblyInfo.cs * As...
2014-08-04, 2884👍, 0💬

What are proxy objects? C++
What are proxy objects? C++ Objects that stand for other objects are called proxy objects or surrogates. template &lt;class t=""> class Array2D { public: class Array1D { public: T& operator[] (int index); const T& operator[] (int index)const; }; Array1D operator[] (int index); const Arra...
2012-01-12, 2883👍, 0💬

In C++, what is the difference between method overloading and method overriding?
In C++, what is the difference between method overloading and method overriding? Overloading a method (or function) in C++ is the ability for functions of the same name to be defined as long as these methods have different signatures (different set of parameters). Method overriding is the ability of...
2012-03-27, 2880👍, 0💬

What is the difference between char a[] = “string”; and char *p = “string”;?
What is the difference between char a[] = “string”; and char *p = “string”;? In the first case 6 bytes are allocated to the variable a which is fixed, where as in the second case if *p is assigned to some other value the allocate memory can change.
2012-03-07, 2879👍, 0💬

What is the value of "count" immediately before the return statement above is executed?
int count=0; class obj { public: obj(){ count++; } ~obj() { count--; } }; main() { obj A,B,C,D ; return 0 ; } What is the value of "count" immediately before the return statement above is executed? 1) 0 2) 1 3) 2 4) 3 5) 4
2012-04-25, 2878👍, 0💬

Is C an object-oriented language?
Is C an object-oriented language? C is not an object-oriented language, but limited object-oriented programming can be done in C.
2012-04-10, 2878👍, 0💬

In a call to malloc, what does an error like
In a call to malloc, what does an error like ``Cannot convert `void *' to `int *''' mean? It means you're using a C++ compiler instead of a C compiler.
2016-06-21, 2877👍, 0💬

Referring to the sample code above, on which one of the following lines does an initializer list occur?
1: class Foo { 2: int size; string name; double value; 3: 4: public: 5: Foo() : size(0), name("unknown"), value(0.0) { 6: } 7: Foo(int s) { 8: size = s; name = "unknown"; value = 0.0; 9: } 10: Foo(int s = 0, string n = "unknown", double v=0) { 11: size = s; name = n; value = v; 12: } 13: }; Referrin...
2012-04-26, 2877👍, 0💬

What does a well-written OO program look like?
What does a well-written OO program look like? A well-written OO program exhibits recurring structures that promote abstraction, flexibility, modularity and elegance.
2012-05-15, 2875👍, 0💬

<< < 112 113 114 115 116 117 118 119 120 121 122 > >>   Sort: Date