main()
{
int i=0;
while(+(+i--)!=0)
i-=i++;
printf(i);
}
Answer Posted / vinod
Error.... Cannot convert int to char error at printf(i). If they replaced printf(i) to printf("%d",i) then it would be -1.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are structures and unions? State differencves between them.
Who is the main contributor in designing the c language after dennis ritchie?
Why flag is used in c?
What does sizeof int return?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What is bin sh c?
What are the types of data structures in c?
How will you write a code for accessing the length of an array without assigning it to another variable?
What is the right type to use for boolean values in c?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What’s the special use of UNIONS?
Explain is it better to bitshift a value than to multiply by 2?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
Explain how can you check to see whether a symbol is defined?
Why do we use int main instead of void main in c?