Miscellaneous Company Exam
Company
Programming
Program
Main()
{char a[6] = "INDIA";
while(*a)
{
printf("%c",*a);
a++;
}}
Read Solution (Total 4)
-
- lvalue required as increment operand
a++; - 10 years agoHelpfull: Yes(1) No(0)
- synatx error: as array cannot be incremented or decremented.
- 10 years agoHelpfull: Yes(0) No(3)
- The answer is:INDIA
- 9 years agoHelpfull: Yes(0) No(3)
- Error: lvalue required
as you cannot change the address of an array by
a++; - 9 years agoHelpfull: Yes(0) No(0)
Miscellaneous Company Exam Other Question