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 calloc malloc realloc in c?
What is wrong with this initialization?
What are nested functions in c?
What is 1d array in c?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What is the purpose of type declarations?
What is echo in c programming?
What are the properties of union in c?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Why is it that not all header files are declared in every C program?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
How can I copy just a portion of a string?
What are actual arguments?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b