What are the advantages of using new operator as compared to the function malloc ()?
No Answer is Posted For this Question
Be the First to Post Answer
How can I swap two values without using a temporary?
what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??
What is difference between %d and %i in c?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....
What is the difference between procedural and declarative language?
What is difference between main and void main?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
what is the difference between c and java?
What is d'n in c?
What are the 4 data types?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.