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...


main()
{char a[10]={1,2,3,4,5,6};int x;
for(x=0;x<4;x++){ b[x]=x+'a';}
printf("%s",b);}

Answers were Sorted based on User's Feedback



main() {char a[10]={1,2,3,4,5,6};int x; for(x=0;x<4;x++){ b[x]=x+'a';} printf(&qu..

Answer / vignesh1988i

1 st prob.. this will be an error since b[] have not been
declared.......

if you are nt bothered about the syntax obligations....
then the output will be:

abcd

Is This Answer Correct ?    5 Yes 0 No

main() {char a[10]={1,2,3,4,5,6};int x; for(x=0;x<4;x++){ b[x]=x+'a';} printf(&qu..

Answer / lucky

it gives compilation error bcoz b is not defined

Is This Answer Correct ?    4 Yes 1 No

main() {char a[10]={1,2,3,4,5,6};int x; for(x=0;x<4;x++){ b[x]=x+'a';} printf(&qu..

Answer / guest

abcd56

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

Linked lists -- can you tell me how to check whether a linked list is circular?

0 Answers  


What are identifiers in c?

0 Answers  


Can u return two values using return keyword? If yes, how? If no, why?

7 Answers  


What do you understand by friend-functions? How are they used?

0 Answers   iNautix,


What is the difference between malloc() and realloc()?

2 Answers  


What are the application of void data type in c?

0 Answers  


C,c++, Java is all are structural oriented or procedure oriented language..?

6 Answers  


Can you think of a way when a program crashed before reaching main? If yes how?

2 Answers  


pierrot's divisor program using c or c++ code

0 Answers  


What is #include in c?

1 Answers  


void main() { int i=5; printf("%d",i++ + ++i); }

21 Answers   ME,


Do character constants represent numerical values?

0 Answers  


Categories