What is your nationality?
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
prog. to produce 1 2 3 4 5 6 7 8 9 10
main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; } a. Runtime error. b. Runtime error. Access violation. c. Compile error. Illegal syntax d. None of the above
What is your nationality?
Design an implement of the inputs functions for event mode
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
main() { int k=1; printf("%d==1 is ""%s",k,k==1?"TRUE":"FALSE"); }
struct Foo { char *pName; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); strcpy(obj->pName,"Your Name"); printf("%s", obj->pName); } a. Your Name b. compile error c. Name d. Runtime error
write a c program to print magic square of order n when n>3 and n is odd?
main() { float f=5,g=10; enum{i=10,j=20,k=50}; printf("%d\n",++k); printf("%f\n",f<<2); printf("%lf\n",f%g); printf("%lf\n",fmod(f,g)); }
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }
Is the following code legal? typedef struct a { int x; aType *b; }aType