main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / 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 |
Post New Answer View All Answers
What is a example of a variable?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Give the rules for variable declaration?
How can you be sure that a program follows the ANSI C standard?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
write a progrmm in c language take user interface generate table using for loop?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
What does void main () mean?
What is return type in c?
What are the difference between a free-standing and a hosted environment?
Explain what does the format %10.2 mean when included in a printf statement?
Explain how do you view the path?
How can you allocate arrays or structures bigger than 64K?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none