main(){

unsigned int i;

for(i=1;i>-2;i--)

printf("c aptitude");

}

Answers were Sorted based on User's Feedback



main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitud..

Answer / susie

Explanation:

i is an unsigned integer. It is compared with a signed
value. Since the both types doesn't match, signed is
promoted to unsigned value. The unsigned equivalent of -2 is
a huge value so condition becomes false and control comes
out of the loop.

Is This Answer Correct ?    11 Yes 2 No

main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitud..

Answer / maroti kukade

No output

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Code Interview Questions

main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }

1 Answers   TCS,


Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

0 Answers  


main() { int a=2,*f1,*f2; f1=f2=&a; *f2+=*f2+=a+=2.5; printf("\n%d %d %d",a,*f1,*f2); }

6 Answers  


write a program to count the number the same (letter/character foreg: 's') in a given sentence.

2 Answers  


writte a c-programm to display smill paces

2 Answers  






main() { int *j; { int i=10; j=&i; } printf("%d",*j); }

9 Answers   HCL, Wipro,


Write a program that find and print how many odd numbers in a binary tree

1 Answers  


main() { int i = 257; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }

1 Answers   CSC,


#define DIM( array, type) sizeof(array)/sizeof(type) main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr, int)); }

1 Answers  


why java is platform independent?

13 Answers   Wipro,


main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }

2 Answers   IBM,


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

0 Answers  


Categories