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 is boolean in c?

0 Answers  


What is pointers in c with example?

0 Answers  


52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?

25 Answers   Datamatics, Solartis, TCS, ThinkBox, Trine,


what's the return value of malloc()

9 Answers  


How do I get a null pointer in my programs?

0 Answers  






4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

0 Answers   TCS,


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

0 Answers  


how to do in place reversal of a linked list(singly or doubly)?

3 Answers  


how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?

2 Answers   Patni, TCS,


What is a floating point in c?

0 Answers  


What is return in c programming?

0 Answers  


Explain the difference between strcpy() and memcpy() function?

0 Answers  


Categories