What will be the output of the following program
#include<stdio.h>
void main()
{
int i=20;
i-=i+++++i++;
printf("%d",i);
}

Answer Posted / jeevitha

i-=i++ + ++i++
i-=41++
i-=42
i=20-42
i=-22

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer to pointer in c with example?

547


What is a header file?

634


What is a MAC Address?

626


What does p mean in physics?

581


How can I find out how much free space is available on disk?

629






What is the explanation for the dangling pointer in c?

677


can anyone please tell about the nested interrupts?

1676


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

3290


What is the difference between array and pointer?

569


Define VARIABLE?

690


What are the types of c language?

556


How do we make a global variable accessible across files? Explain the extern keyword?

1420


What are the different types of control structures?

584


State the difference between x3 and x[3].

650


What are the c keywords?

750