main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / prakruthi
ryt answer is 3 for sure
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is volatile c?
What is a built-in function in C?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Explain what is the purpose of "extern" keyword in a function declaration?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Write a program to print ASCII code for a given digit.
given post order,in order construct the corresponding binary tree
What is the difference between new and malloc functions?
How can I sort a linked list?
Differentiate between declaring a variable and defining a variable?
Can you write the algorithm for Queue?
Should a function contain a return statement if it does not return a value?
Why pointers are used in c?
How will you write a code for accessing the length of an array without assigning it to another variable?