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

write the function. if all the character in string B appear in string A, return true, otherwise return false.

11 Answers   Google,


how to swap 3 nos without using temporary variable

4 Answers   Satyam,


PROG. TO PRODUCE 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

1 Answers  


Find your day from your DOB?

15 Answers   Accenture, Microsoft,


main() { int k=1; printf("%d==1 is ""%s",k,k==1?"TRUE":"FALSE"); }

1 Answers  






main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }

7 Answers  


How to access command-line arguments?

4 Answers  


There is a lucky draw held every day. if there is a winning number eg 1876,then all possible numbers like 1867,1687,1768 etc are the numbers that match irrespective of the position of the digit. Thus all these numbers qualify fr the lucky draw prize Assume there is no zero digit in any numbers. write a program to show all the possible winning numbers if a "winning number"is passed as an arguments to the function.

1 Answers   Nagarro,


int aaa() {printf(“Hi”);} int bbb(){printf(“hello”);} iny ccc(){printf(“bye”);} main() { int ( * ptr[3]) (); ptr[0] = aaa; ptr[1] = bbb; ptr[2] =ccc; ptr[2](); }

1 Answers  


Cluster head selection in Wireless Sensor Network using C programming language.

0 Answers  


write a origram swaoing valu without 3rd variable

2 Answers  


main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit >> (i - (i -1))); } } a. 512, 256, 0, 0, 0 b. 256, 256, 0, 0, 0 c. 512, 512, 512, 512, 512 d. 256, 256, 256, 256, 256

2 Answers   HCL,


Categories