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
what is calloc and malloc?
How do i store a paragraph into a string? for example, if i input a long paragraph, the program will read the words one by one and concatenate them until no word is left.
write a progam to compare the string using switch case?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
how is the examination pattern?
which is faster execution: loops or recursion?
What does %d do in c?
main() { int arr[5]={23,67}; printf("%d%d%d",arr[2],arr[3],arr[4]); }
What are the keywords in c?
how to write a cprogram yo get output in the form * *** ***** ******* ********* ******* ***** *** *
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=