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 |
While compiling a c program,graphics header files are not including in my program..eg: <graphics.h>,what may be the problem...is there any environment settings exists.
Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
how to find the sizof of any datatype using bit manipulations
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
union { char ch[10]; short s; }test; test.s = 0xabcd; main() { printf("%d",ch[10]); }
What will be the output of x++ + ++x?
How can I read a binary data file properly?
Which header file is essential for using strcmp function?
main() { FILE *fs; char c[10]; fs = fopen(“source.txt”, ”r”); /* source.txt exists and contains “Vector Institute” */ fseek(fs,0,SEEK_END); fseek(fs,-3L,SEEK_CUR); fgets(c,5,fs); puts(c); }
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What are the different types of pointers used in c language?