main()
{
printf(5+"Vidyarthi Computers");
}
Answers were Sorted based on User's Feedback
Answer / sujith
I would rather say
rthi Computers
Reason is printf() takes a pointer to char to print the
string. we said 5+"Vidyarthi Computers" so this is
interpreted as "rthi Computers" becuase we have added 5 to
the base pointer. so it will print only "rthi Computers".
| Is This Answer Correct ? | 18 Yes | 0 No |
Answer / vignesh1988i
rthi computers
since this will be taken as a string and 5 is the subscript value and prints the remaining characters from 'r'.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / shruti
arthi computers..
i think 5 characters is 0 - 5 and not 1- 5...
| Is This Answer Correct ? | 2 Yes | 2 No |
char ch=10;printf("%d",ch);what is the output
for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????
What is union and structure in c?
What do you mean by command line argument?
How can a process change an environment variable in its caller?
find a number whether it is even or odd without using any control structures and relational operators?
22 Answers Microsoft, Shashank Private Limited,
what is the different between if-else and switch statment (other than syntax)
26 Answers CTS, Oracle, Scorpos,
What is difference between arrays and pointers?
When the macros gets expanded?
What is meant by initialization and how we initialize a variable?
What is meant by type casting?
How can I set an array's size at run time?