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 |
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is main () in c language?
char p="data"; printf(p);
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What is the code in while loop that returns the output of given code?
How to use c/c++ code in JAVA
10 Answers CDAC, IBM, Satyam, Scope International,
Explain the use of keyword 'register' with respect to variables.
f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error
write a C program to print the program itself ?!
How to add two numbers without using semicolon at runtime
Explain what is a const pointer?
What is wrong in this statement? scanf(“%d”,whatnumber);