main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answers were Sorted based on User's Feedback
Answer / mortal
num[i] is num[1] and its reassigned as i++ that is 1 thus it
will print 1.
but im not at all sure about this..
| Is This Answer Correct ? | 2 Yes | 10 No |
Answer / sathya
num[i]=i+1
num[1]=1+1=2, but num[1] is 1.so there is a error...
| Is This Answer Correct ? | 4 Yes | 13 No |
program to find middle element of linklist?
What is the scope of global variable in c?
what is the defrenece between structure and union
What is variable initialization and why is it important?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
What is meant by type specifiers?
What are the different categories of functions in c?
Why we use conio h in c?
int j =15,i; for (i=1; 1<5; ++i) {printf ("%d%d ",j,i); j = j-3; }
write a program without using main function?
Write a Program to find whether the given number or string is palindrome.
What is a substring in c?