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
What are the two types of structure?
What is the process to generate random numbers in c programming language?
When can a far pointer be used?
What is getch () for?
Why is c called c not d or e?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
How do you generate random numbers in C?
number of times a digit is present in a number
Explain the use of bit fieild.
What is the meaning of c in c language?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
Can we assign integer value to char in c?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
How can you return multiple values from a function?
What is a function simple definition?