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
What is the use of structure padding in c?
How is a null pointer different from a dangling pointer?
What does the characters “r” and “w” mean when writing programs that will make use of files?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
What is a program?
What is the 'named constructor idiom'?
What is d'n in c?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What is methods in c?
What are two dimensional arrays alternatively called as?
What does %d do in c?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
What is the difference between formatted&unformatted i/o functions?
Explain how can you be sure that a program follows the ansi c standard?