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

Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

670


What is memcpy() function?

624


What is bubble sort in c?

640


Explain enumerated types in c language?

608


Explain is it better to bitshift a value than to multiply by 2?

720






What are the different types of errors?

648


what is recursion in C

618


How can I ensure that integer arithmetic doesnt overflow?

612


Why n++ execute faster than n+1 ?

1853


Can we increase size of array in c?

544


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

612


praagnovation

1781


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1785


How many levels deep can include files be nested?

654


What is pointers in c with example?

586