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


Please Help Members By Posting Answers For Below Questions

What are structures and unions? State differencves between them.

614


Who is the main contributor in designing the c language after dennis ritchie?

545


Why flag is used in c?

651


What does sizeof int return?

588


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

2227






What is bin sh c?

576


What are the types of data structures in c?

596


How will you write a code for accessing the length of an array without assigning it to another variable?

611


What is the right type to use for boolean values in c?

580


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2299


What’s the special use of UNIONS?

655


Explain is it better to bitshift a value than to multiply by 2?

709


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

727


Explain how can you check to see whether a symbol is defined?

657


Why do we use int main instead of void main in c?

613