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
How many types of sorting are there in c?
How can you increase the allowable number of simultaneously open files?
write a c program for swapping two strings using pointer
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Write a program to print ASCII code for a given digit.
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
Can true be a variable name in c?
Are global variables static in c?
Is linux written in c?
What do you mean by a local block?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
What is the difference between array and pointer in c?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What is the basic structure of c?
What are the advantages of c preprocessor?