main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / ismail
2 is the ans
num[i]=i++
num[1]=2
now num[1] is changed with 2(same as the previous value)
now to print num[i]=num[1] right?
its 2 which is in num[1] solved!!!!
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
How do you convert strings to numbers in C?
What does s c mean in text?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
how logic is used
What is the c value paradox and how is it explained?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Why is sprintf unsafe?
Explain how do you view the path?
Why c is called a middle level language?
What is a pointer on a pointer in c programming language?
Why do we use int main instead of void main in c?
What was noalias and what ever happened to it?
What is const volatile variable in c?