12. 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 / rakesh
B)only 2
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is string in c language?
How do I read the arrow keys? What about function keys?
What is the purpose of sprintf?
How to get string length of given string in c?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Is null valid for pointers to functions?
What is a pointer value and address in c?
In which header file is the null macro defined?
how to build a exercise findig min number of e heap with list imlemented?
How do you convert strings to numbers in C?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
What is the condition that is applied with ?: Operator?
Why do we use stdio h and conio h?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?