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 / j mahesh
i=20
i++ + ++i =20 + 21=41
i-=41
i=i-41 =20-41
i= -21
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What are pointers?
What are the advantages of using macro in c language?
What is sizeof int?
Is c programming hard?
What the different types of arrays in c?
What is the use of in c?
Is void a keyword in c?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Explain why c is faster than c++?
How will you find a duplicate number in a array without negating the nos ?
When is a “switch” statement preferable over an “if” statement?
What does node * mean?
what are bit fields? What is the use of bit fields in a structure declaration?
Why structure is used in c?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.