main()
{
char *p;
p="%d\n";
p++;
p++;
printf(p-2,300);
}
Answer / susie
Answer :
300
Explanation:
The pointer points to % since it is incremented twice and
again decremented by 2, it points to '%d\n' and 300 is printed.
| Is This Answer Correct ? | 8 Yes | 1 No |
main() { unsigned int i=10; while(i-->=0) printf("%u ",i); }
Program to Delete an element from a doubly linked list.
4 Answers College School Exams Tests, Infosys,
main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above
main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); }
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)); }
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
Program to find the largest sum of contiguous integers in the array. O(n)
Find your day from your DOB?
15 Answers Accenture, Microsoft,
create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00
Write a program to model an exploding firecracker in the xy plane using a particle system
{ int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
What is the problem with the following code segment? while ((fgets(receiving array,50,file_ptr)) != EOF) ;