main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / 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 |
Post New Answer View All Answers
How can you increase the allowable number of simultaneously open files?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
What is this pointer in c plus plus?
What do you know about the use of bit field?
What are high level languages like C and FORTRAN also known as?
What are the advantages and disadvantages of pointers?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What are the different types of data structures in c?
Is there a way to switch on strings?
What is a nested loop?
What are terms in math?
Write a program to swap two numbers without using the third variable?
Write a program to print factorial of given number without using recursion?
int far *near * p; means
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?