program that will accept any name and will be stored in an
array

Answers were Sorted based on User's Feedback



program that will accept any name and will be stored in an array..

Answer / manish kumar

this code is in c#
//i will store a name of 4 letters

string []name= string[5];
Console.WriteLine("Enter your name plz only 4 words");
for(int i=0;i<4;i++)
{
name[i]=Console.ReadLine();
}

Is This Answer Correct ?    4 Yes 1 No

program that will accept any name and will be stored in an array..

Answer / gunda raj

char a[10];
cout<<" enter any name please";
for(int i=0;i<9;i++)
{
cin>>a[i];
}

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More JavaScript Code Interview Questions

how to Scroll a DIV content

0 Answers   SoftSquare,


Create a Menu that can be activated while clicking on Right Mouse button

0 Answers   Nest, TCS,


write a code that user can choose/alter Body Text Size

0 Answers  


write a code to generate pseudorandom numbes

0 Answers   ABC,


<html> <head> <title>BASIC CALCULATOR</title> </head> <script language= "javascript"> function= setValue(){ var a_term1 </script> <body> <center> <table> <tr> <td><input type="text" id="text box1" style="width:50px"> </td> <td><input type="text" id="text box2" style="width:40px"> </td> <td><input type="text" id="text box3" style="width:50px"> </td> </tr> </table> <table> <tr> <td><input type="text" id="text box4" ></td> </tr> </table> <table> <tr> <td><input type= "button" value= "7" onClick="" ></td> <td><input type= "button" value= "8" onClick="" ></td> <td><input type= "button" value= "9" onClick="" ></td> <td><input type= "button" value= "/" onClick="" ></td> </tr> <td><input type= "button" value= "4" onClick="" ></td> <td><input type= "button" value= "5" onClick="" ></td> <td><input type= "button" value= "6" onClick="" ></td> <td><input type= "button" value= "*" onClick="" ></td> </tr> <td><input type= "button" value= "1" onClick="" ></td> <td><input type= "button" value= "2" onClick="" ></td> <td><input type= "button" value= "3" onClick="" ></td> <td><input type= "button" value= "-" onClick="" ></td> </tr> <td><input type= "button" value= "0" onClick="" ></td> <td><input type= "button" value= "C" onClick="" ></td> <td><input type= "button" value= "=" onClick="" ></td> <td><input type= "button" value= "+" OnClick="" ></td> </table> </center> </body> <hr/> </html> how do i make the calculator work now

1 Answers  






how to pass data between pages using Frames

0 Answers  


how to pass data between pages using URLs

1 Answers   Symantec,


sample code to auto focusing the first field in a form

0 Answers   Wipro,


code to detect availability of cookies

0 Answers  


how to create an anonymous function

0 Answers  


code to calculate the number of days between two dates

2 Answers  


Create a ViewState Property?

0 Answers   TCS,


Categories
  • PHP Code Interview Questions PHP Code (33)
  • JSP Code Interview Questions JSP Code (6)
  • ASP Code Interview Questions ASP Code (5)
  • CGI Perl Code Interview Questions CGI Perl Code (3)
  • JavaScript Code Interview Questions JavaScript Code (63)
  • VB Script Code Interview Questions VB Script Code (20)
  • Shell Script Code Interview Questions Shell Script Code (31)
  • Python Code Interview Questions Python Code (34)
  • WinRunner Code Interview Questions WinRunner Code (1)
  • HTML DHTML XHTML Code Interview Questions HTML DHTML XHTML Code (13)
  • XML Interview Questions XML (43)
  • Scripts_Markup Code AllOther Interview Questions Scripts_Markup Code AllOther (5)