main()
{
int i = 1;
int num[] = {1,2,3,4};
num[i] = i++;
printf("%d", num[i]);
}
what will be the output?
}
Answer Posted / ssssssssss
output
2
Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
What is pass by reference in c?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is the sizeof () operator?
What is the use of linkage in c language?
Can main () be called recursively?
Give the rules for variable declaration?
Differentiate between the = symbol and == symbol?
How to write c functions that modify head pointer of a linked list?
What is the difference between struct and typedef struct in c?
How can I generate floating-point random numbers?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
cavium networks written test pattern ..
How do I use void main?
Which is better pointer or array?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.