char S;
char S[6]= " HELLO";
printf("%s ",S[6]);
output of the above program ?
(0, ASCII 0, I,unpredictable)
Answer Posted / manishsoni
This gives an error, and prg is terminated.
To slove this problem we show a program..
#include<stdio.h>
#include<conio.h>
int main()
{
char S[6]= "HELLO";
printf("%s",S);
getch();
return 0;
}
this print simple hello.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Why is c called c?
What does d mean?
How do I use strcmp?
What is scanf_s in c?
Can you add pointers together? Why would you?
What are the 3 types of structures?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Where in memory are my variables stored?
Explain what are the different data types in c?
How can I find out the size of a file, prior to reading it in?
Define Array of pointers.
What are the functions to open and close file in c language?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Do you know the use of 'auto' keyword?