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 |
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
what is the output of the code and how? main() { int *ptr,x; x=sizeof(ptr); printf("%d",x); }
I have an array of 100 elements, each of which is a random integer. I want to know which of the elements: a) are multiples of 2 b) are multiples of 2 AND 5 c) have a remainder of 3 when divided by 7
Explain the red-black trees?
Program to simulate second clock
what is the hexidecimal number of 4100?
Difference between Class and Struct.
13 Answers Ericsson, Motorola, Wipro,
What do you mean by invalid pointer arithmetic?
Where in memory are my variables stored?
how do u find out the number of 1's in the binary representation of a decimal number without converting it into binary(i mean without dividing by 2 and finding out the remainder)? three lines of c code s there it seems...can anyone help
What does d mean?
Write a program in C to convert date displayed in gregorian to julian date