main()
{
char x;
while(x=0;x<=255;x++)
printf("\nAscii value %d Charater %c",x,x);
}

Answers were Sorted based on User's Feedback



main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); ..

Answer / ashutosh tiwari

syntax error: while will never have initialization or
increment. it only have condition.

Is This Answer Correct ?    22 Yes 1 No

main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); ..

Answer / abdulhamid

21

Is This Answer Correct ?    3 Yes 16 No

Post New Answer

More C Interview Questions

What are loops c?

0 Answers  


write a program to print sum of each row of a 2D array.

4 Answers  


why program counter is 16 bit?

3 Answers  


What is I ++ in c programming?

0 Answers  


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

0 Answers   Amdocs, Apps Associates,






how to return 1000 variables from functio9n in c?plz give me code also

6 Answers  


Is there any book to know about Basics of C Language?

4 Answers  


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

0 Answers   HCL,


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

0 Answers   Reliance,


what is the difference between call by value and call by reference?

5 Answers   Genpact, Global Logic, Infosys,


write a program to display the frequency of each element in a given array in c language

1 Answers  


Give the rules for variable declaration?

0 Answers  


Categories