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 / optimistsushma
B)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
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.
In a byte, what is the maximum decimal number that you can accommodate?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
What does c mean in basketball?
Explain what is meant by high-order and low-order bytes?
What are the string functions? List some string functions available in c.
Describe wild pointers in c?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What is #line used for?
What does typedef struct mean?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What is static memory allocation?
What do you mean by Recursion Function?
Write a program to print fibonacci series without using recursion?
Can two or more operators such as and be combined in a single line of program code?