main()
{
char *cptr,c;
void *vptr,v;
c=10; v=0;
cptr=&c; vptr=&v;
printf("%c%v",c,v);
}
Answer / susie
Answer :
Compiler error (at line number 4): size of v is Unknown.
Explanation:
You can create a variable of type void * but not of type
void, since void is an empty type. In the second line you
are creating variable vptr of type void * and v of type void
hence an error.
| Is This Answer Correct ? | 10 Yes | 1 No |
main() { char * strA; char * strB = I am OK; memcpy( strA, strB, 6); } a. Runtime error. b. I am OK c. Compile error d. I am O
How can i find first 5 natural Numbers without using any loop in c language????????
What is the main difference between STRUCTURE and UNION?
main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }
How we print the table of 2 using for loop in c programing?
void main() { int i; char a[]="\0"; if(printf("%s\n",a)) printf("Ok here \n"); else printf("Forget it\n"); }
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.
6 Answers Fusion Systems GmbH,
Print an integer using only putchar. Try doing it without using extra storage.
main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }
void main() { static int i=i++, j=j++, k=k++; printf(“i = %d j = %d k = %d”, i, j, k); }
write a c program to print magic square of order n when n>3 and n is odd?
main() { char *p="GOOD"; char a[ ]="GOOD"; printf("\n sizeof(p) = %d, sizeof(*p) = %d, strlen(p) = %d", sizeof(p), sizeof(*p), strlen(p)); printf("\n sizeof(a) = %d, strlen(a) = %d", sizeof(a), strlen(a)); }