what will be the output of this program?
void main()
{
int a[]={5,10,15};
int i=0,num;
num=a[++i] + ++i +(++i);
printf("%d",num);
}

Answer Posted / babu ba

6

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of pointers in c?

521


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

716


What is data structure in c language?

593


Write a program to implement queue.

653


Explain the bubble sort algorithm.

632






What is the advantage of using #define to declare a constant?

609


How can I generate floating-point random numbers?

595


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1609


How can I automatically locate a programs configuration files in the same directory as the executable?

616


What tq means in chat?

569


Why do we use namespace feature?

573


Explain pointers in c programming?

624


What is structure in c language?

608


What is a const pointer?

621


Why & is used in scanf in c?

611