What is the problem with the following code segment?
while ((fgets(receiving array,50,file_ptr)) != EOF)
;
Answer / susie
Answer : & Explanation:
fgets returns a pointer. So the correct end of file check is
checking for != NULL.
| Is This Answer Correct ? | 6 Yes | 1 No |
print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!
35 Answers Tata Elxsi, TCS, VI eTrans,
How to access command-line arguments?
main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }
Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];
main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } }
#define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }
4 Answers Google, HCL, Quick Heal, WTF,
can u give me the c codings for converting a string into the hexa decimal form......
main() { char *p; p="%d\n"; p++; p++; printf(p-2,300); }
void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }
main() { printf("%x",-1<<4); }
Given a list of numbers ( fixed list) Now given any other list, how can you efficiently find out if there is any element in the second list that is an element of the first list (fixed list)
3 Answers Disney, Google, ZS Associates,
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }