Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why is c called c?

1038


What does d mean?

1111


How do I use strcmp?

1091


What is scanf_s in c?

1135


Can you add pointers together? Why would you?

1145


What are the 3 types of structures?

1047


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

2343


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2305


Where in memory are my variables stored?

1196


Explain what are the different data types in c?

1235


How can I find out the size of a file, prior to reading it in?

1191


Define Array of pointers.

1120


What are the functions to open and close file in c language?

1221


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1924


Do you know the use of 'auto' keyword?

1219