Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);

No. of times the loop is executed ?

Answer Posted / subbu

instead of "c++2" if there is "c++" it will not give any
errors. output will be continuosly for infinite number of
times.

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of static variable in c?

785


Explain how can I convert a number to a string?

837


What should malloc(0) do?

790


What is union and structure?

755


How can this be legal c?

821






How can I direct output to the printer?

1042


Explain what header files do I need in order to define the standard library functions I use?

835


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

1799


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

841


How can I delete a file?

804


How many types of arrays are there in c?

760


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

876


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

1840


What is the difference between ‘g’ and “g” in C?

3374


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

910