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 / rekha

It will print 0 to 127

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the benefit of using const for declaring constants?

779


How can you call a function, given its name as a string?

891


How do I use void main?

813


Explain what is meant by 'bit masking'?

841


What does main () mean in c?

838






What is multidimensional arrays

828


What are the 3 types of structures?

750


Is c object oriented?

702


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2391


Tell us something about keyword 'auto'.

827


What is the advantage of using #define to declare a constant?

821


What is difference between far and near pointers?

778


List the different types of c tokens?

806


I heard that you have to include stdio.h before calling printf. Why?

796


Where does the name "C" come from, anyway?

839