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
How many main () function we can have in a project?
What is the correct declaration of main?
What Is The Difference Between Null And Void Pointer?
What are the main characteristics of c language describe the structure of ac program?
Write a program to print all permutations of a given string.
What is preprocessor with example?
What is linear search?
Why is void main used?
Explain is it valid to address one element beyond the end of an array?
What is the maximum no. of arguments that can be given in a command line in C.?
What is unsigned int in c?
What is use of null pointer in c?
Explain which function in c can be used to append a string to another string?
Explain the use of bit fieild.
Explain the use of keyword 'register' with respect to variables.