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
hi, which software companys will take,if d candidate's % is jst 55%?
What is a built-in function in C?
What are enums in c?
Define Array of pointers.
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
Can you explain the four storage classes in C?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Explain how do you declare an array that will hold more than 64kb of data?
Why can't I perform arithmetic on a void* pointer?
What is pre-emptive data structure and explain it with example?
In C language, a variable name cannot contain?
What is calloc() function?
What is the use of ?
What is wrong in this statement?
Explain what is the stack?