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 |
Write a program that receives as input a number omaadel-n-print, four digits.
What is scope and lifetime of a variable in c?
what is a void pointer?
is assignment operator is arithmatic or not
List some of the dynamic data structures in C?
WHAT IS FLOAT?
what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??
what are advantages of U D F?
How does free() know explain how much memory to release?
Can we access RAM? How? Whats the range of access? Similarly What are other hardware we can access?
two variables are added answer is stored on not for third variable how it is possible?
logic for generating all the combinations of the any number of given letters. ex::::::::: if a,b,c,d are given the o/p should be abcd,dcba,dbac,bcad,................ 4*3*2*1 combinations............