What is output of the following program ?

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

Answer Posted / hariram

3 2 1

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

606


How can I sort more data than will fit in memory?

632


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3058


what will be the output for the following main() { printf("hi" "hello"); }

9346


What is scope rule in c?

609






difference between native and cross compilers

1673


What are types of functions?

570


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

688


Why is #define used?

792


What is size of union in c?

584


What are the keywords in c?

645


Write a program to swap two numbers without using third variable?

817


What are examples of structures?

600


How can I write functions that take a variable number of arguments?

631


Why double pointer is used in c?

571