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 |
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
Write, efficient code for extracting unique elements from a sorted list of array. e.g. (1, 1, 3, 3, 3, 5, 5, 5, 9, 9, 9, 9) -> (1, 3, 5, 9).
13 Answers Intel, Microsoft, TCS,
Write a program to model an exploding firecracker in the xy plane using a particle system
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }
There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.
Write a program to receive an integer and find it's octal equivalent. How can i do with using while loop.
There were 10 records stored in “somefile.dat” but the following program printed 11 names. What went wrong? void main() { struct student { char name[30], rollno[6]; }stud; FILE *fp = fopen(“somefile.dat”,”r”); while(!feof(fp)) { fread(&stud, sizeof(stud), 1 , fp); puts(stud.name); } }
how to swap 3 nos without using temporary variable
How to palindrom string in c language?
/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }
void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }