Login
C Programming
1)
How will you free the allocated memory ?
A)
remove(var-name);
B)
free(var-name);
C)
delete(var-name);
D)
dalloc(var-name);
Next
Show Answer:
Show Answer
More Question
Point out the error, if any in the program. #includestdio.hint main() int P = 10; switch(P) case 10: printf(Case 1); case 20: printf(Case 2); break; case P: printf(Case 2); break; return 0;
Point out the error in the following program. #includestdio.hint main() struct emp char name[20]; float sal; ; struct emp e[10]; int i; for(i=0; i=9; i++) scanf(s f, e[i].name, &e[i].sal); return 0;
Which of the following errors would be reported by the compiler on compiling the program given below #includestdio.hint main() int a = 5; switch(a) case 1: printf(First); case 2: printf(Second); case 3 + 2: printf(Third); case 5: printf(Final); break; return 0;
What will be the output of the program #includestdio.hint main() int i=4, j=8; printf(d, d, d\n, ij&ji, ij&ji, i^j); return 0;
The library function used to find the last occurrence of a character in a string is