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 |
main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?
what is the use of ~ in c lang?????
Do you know the use of 'auto' keyword?
Explain void pointer?
1.)how to find d most repeated word in a string? string ="how do you do"?? output should be do
1 Answers AAS, Nagarro, Vuram,
How the processor registers can be used in C ?
Explain b+ tree?
find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }
Why header file is used in c?
IS STRUCTURES CAN BE USED WITHIN AN ARRAY?
What is equivalent to ++i+++j?
how to use virual function in real time example