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 / gerda

15

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain data types & how many data types supported by c?

588


Explain how can you avoid including a header more than once?

607


What is a pointer and how it is initialized?

612


Can you tell me how to check whether a linked list is circular?

781


Which node is more powerful and can handle local information processing or graphics processing?

831






The difference between printf and fprintf is ?

720


What is c standard library?

694


What is an auto keyword in c?

645


Explain what is the purpose of "extern" keyword in a function declaration?

625


What is string function in c?

544


How can I insert or delete a line (or record) in the middle of a file?

579


What is mean by data types in c?

557


Explain what is the benefit of using an enum rather than a #define constant?

728


What are variables and it what way is it different from constants?

793


What is 2 d array in c?

562