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

hi, which software companys will take,if d candidate's % is jst 55%?

2046


What is a built-in function in C?

1512


What are enums in c?

1115


Define Array of pointers.

1042


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1896


Can you explain the four storage classes in C?

1067


Function calling procedures? and their differences? Why should one go for Call by Reference?

1040


Explain how do you declare an array that will hold more than 64kb of data?

1397


Why can't I perform arithmetic on a void* pointer?

1043


What is pre-emptive data structure and explain it with example?

3654


In C language, a variable name cannot contain?

1219


What is calloc() function?

1047


What is the use of ?

992


What is wrong in this statement?

1075


Explain what is the stack?

1041