mardi 10 mars 2015

Will this program compile in Turbo C?


Vote count:

-1




I want to know because I am currently leading C.



#include<studio.h>
int main()
{
into a=10, *j;
void *k;
j=k=&a;
j++;
k++;
printf("%u %u\n, j, k");
return 0;
}


asked 1 min ago


1 Answer



Vote count:

0




No. There is an 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.


answered 13 secs ago






Will this program compile in Turbo C?

Aucun commentaire:

Enregistrer un commentaire