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
What is the code in while loop that returns the output of given code?
How can I remove the leading spaces from a string?
Here is a good puzzle: how do you write a program which produces its own source code as output?
Explain c preprocessor?
What is this infamous null pointer, anyway?
Why can't I perform arithmetic on a void* pointer?
How many types of sorting are there in c?
What is a pointer on a pointer in c programming language?
all c language question
What is the purpose of the statement: strcat (S2, S1)?
What is array of structure in c programming?
How many levels of pointers have?
What are the advantages of external class?
How do you print an address?
Why we use conio h in c?