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 / akash dhal
initialized with 0
in for loop ist time condition satisfied so print 0,like
this 127 will be printed .as it is a signed no. so 127+1 is
-128 so condition false come out of the loop.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is c++ based on c?
What is indirection?
What is size of union in c?
Do pointers take up memory?
Why void main is used in c?
What is the size of empty structure in c?
Explain the use of 'auto' keyword in c programming?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
how could explain about job profile
What are header files and explain what are its uses in c programming?
Why c language?
Who is the founder of c language?
largest Of three Number using without if condition?
How do you use a pointer to a function?
How many levels of pointers can you have?