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
What is the use of static variable in c?
Explain how can I convert a number to a string?
What should malloc(0) do?
What is union and structure?
How can this be legal c?
How can I direct output to the printer?
Explain what header files do I need in order to define the standard library functions I use?
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
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
How can I delete a file?
How many types of arrays are there in c?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
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
What is the difference between ‘g’ and “g” in C?
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'); }