Look at the Code:
main()
{
int a[]={1,2,3},i;
for(i=0;i<3;i++)
{
printf("%d",*a);
a++;
}
}
Which Statement is/are True w.r.t the above code?
I.Executes Successfully & Prints the contents of the array
II.Gives the Error:Lvalue Required
III.The address of the array should not be changed
IV.None of the Above.
A)Only I B)Only II C)II & III D)IV
Answers were Sorted based on User's Feedback
how to write palindrome program?
What is infinite loop?
Explain what is the difference between a string and an array?
atoi, which takes a string and converts it to an integer. write a program that reads lines(using getline), converts each line to an integer using atoi and computes the average of all the numbers read. also compute the standard deviation
How to declare a variable?
difference between memcpy and strcpy
What are different storage class specifiers in c?
What is the difference between CV and Resume ?
What are signals in C?
What are structure types in C?
What is Full Form of C and Why We use C
Is an array parameter is always "by reference" ?