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 |
Write a Program to find whether the given number or string is palindrome.
Explain function pointer with exapmles.
Write a simple code fragment that will check if a number is positive or negative.
Tell me the use of bit field in c language?
wat is the output #define VOLEDEMORT _who_must_not_be_named int main() { printf("VOLEDEMORT"); }
what is the need for main function in c?
List a few unconditional control statement in c.
What is the use of f in c?
What is the difference between pure virtual function and virtual function?
What is sizeof array in c?
int *a[5] refers to
Can you write the algorithm for Queue?
0 Answers College School Exams Tests, TCS,