#include<stdio.h> int main() { int *p1, i=25; void *p2; p1=&i; p2=&i; p1=p2; p2=p1; return 0; }
Discuss About this Question.
#include<stdio.h> int main() { int a=10, *j; void *k; j=k=&a; j++; k++; printf("%u %u\n", j, k); return 0; }
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.
To install on iPhone/iPad: tap Share → Add to Home Screen.
Discuss About this Question.