Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 Will the program compile in Turbo C? #include<stdio.h> int main() { int a=10, j; void k; j=k=&a; j++; k++; printf("%u %u\n", j, k); return 0; } ?->(Show Answer!)
1. Will the program compile in Turbo C? #include<stdio.h> int main() { int a=10, j; void k; j=k=&a; j++; k++; printf("%u %u\n", j, k); return 0; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.02 pm
Error in statement k++. We cannot perform arithmetic on void pointers. The following error will be displayed while compiling above program in TurboC. Compiling PROGRAM.C:
Error PROGRAM.C 8: Size of the type is unknown or zero.
Error PROGRAM.C 8: Size of the type is unknown or zero.