What is output of the following program ?

main()
{
i = 1;
printf("%d %d %d\n",i,i++,i++);
}

Answer Posted / chandrakala

error: i doesn't declared in a correct way
int i=1

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type is sizeof?

787


What is meant by keywords in c?

833


What are the characteristics of arrays in c?

799


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

2053


How are portions of a program disabled in demo versions?

992


What does c value mean?

852


How can I avoid the abort, retry, fail messages?

853


Explain why can’t constant values be used to define an array’s initial size?

1085


How to declare pointer variables?

892


When c language was developed?

817


What is a constant and types of constants in c?

835


When should you use a type cast?

798


int i=10; printf("%d %d %d", i, i=20, i);

1284


What is property type c?

827


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.

2002