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
Answer Posted / hussain reddy
c
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is a pragma?
What is nested structure with example?
Differentiate Source Codes from Object Codes
Can we replace the struct function in tree syntax with a union?
How can I write a function that takes a format string and a variable number of arguments?
What are high level languages like C and FORTRAN also known as?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What oops means?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
What does the message "automatic aggregate intialization is an ansi feature" mean?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is the difference between far and near ?
Is malloc memset faster than calloc?
What is use of bit field?