What is the output of the program given below

#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
}

Answer Posted / tasneemuddin

It will print no from 0 to 32767.
Like :
0
1
2
3
.
.
.
.
32767

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which of these functions is safer to use : fgets(), gets()? Why?

692


What is identifiers in c with examples?

728


What is binary tree in c?

687


Why is void main used?

672


Can you please explain the difference between malloc() and calloc() function?

684






What is typedef?

765


Does c have enums?

653


Why c is called object oriented language?

654


What is the use of header?

702


How many types of operator or there in c?

668


How do I swap bytes?

694


How can I find the modification date of a file?

770


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

800


How can you find out how much memory is available?

671


What is 2 d array in c?

621