main(){
unsigned int i;
for(i=1;i>-2;i--)
printf("c aptitude");
}
Answers were Sorted based on User's Feedback
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(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }
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.
main() { int a=2,*f1,*f2; f1=f2=&a; *f2+=*f2+=a+=2.5; printf("\n%d %d %d",a,*f1,*f2); }
write a program to count the number the same (letter/character foreg: 's') in a given sentence.
writte a c-programm to display smill paces
main() { int *j; { int i=10; j=&i; } printf("%d",*j); }
Write a program that find and print how many odd numbers in a binary tree
main() { int i = 257; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }
#define DIM( array, type) sizeof(array)/sizeof(type) main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr, int)); }
why java is platform independent?
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
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