What is wrong with this declaration?
No Answer is Posted For this Question
Be the First to Post Answer
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....
where do we use volatile keyword?
write a c program for swapping two strings using pointer
how to find out the biggest element (or any other operation) in an array which is dynamic. User need not to mention the array size while executing.
34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?
Explain bit masking in c?
Given a piece of code int x[10]; int *ab; ab=x; To access the 6th element of the array which of the following is incorrect? (A) *(x+5) (B) x[5] (C) ab[5] (D) *(*ab+5} .
Explain the difference between malloc() and calloc() in c?
Tell us the use of fflush() function in c language?
how to reverse string "Hello World" by using pointers only. Without any temp var
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Simplify the program segment if X = B then C ← true else C ← false