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

Where are local variables stored in c?

0 Answers  


Does sprintf put null character?

0 Answers  


Why shouldn’t I start variable names with underscores?

0 Answers  


main() { printf(5+"good morning"); printf("%c","abcdefgh"[4]); }the o/p is morning and e...how someone explain

1 Answers  


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

0 Answers  


#include<stdio.h> #include<conio.h> # define swap(a,b) temp=a; a=b; b=temp; void main( ) { int i, j, temp; i=5; j=10; temp=0; if( i > j) swap( i, j ); printf( "%d %d %d", i, j, temp); }

9 Answers   Burning Glass,


How can a string be converted to a number?

0 Answers  


How can I send mail from within a c program?

0 Answers  


Write a program to reverse a given number in c language?

0 Answers  


What are run-time errors?

0 Answers  


How will you declare an array of three function pointers where each function receives two ints and returns a float?

0 Answers   TISL,


Can the “if” function be used in comparing strings?

0 Answers  


Categories