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
Is null always equal to 0(zero)?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Describe the modifier in c?
Explain union.
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
What is fflush() function?
What is pointer and structure in c?
What is the difference between functions abs() and fabs()?
Can the size of an array be declared at runtime?
What is integer constants?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
I need testPalindrome and removeSpace
#include
What do you mean by dynamic memory allocation in c? What functions are used?