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 Add Message and Confirmation Boxes Using JavaScript?

1 Answers  


How to encode and decode URL strings?

0 Answers   TCS,


code to positioning of window in certain dimensions

0 Answers  


sample code to auto focusing the first field in a form

0 Answers   Wipro,


<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  






determine which Element received an Event

0 Answers  


determine which key was pressed and its type

1 Answers  


write a program segment that will ask the user if he wants to computer the perimeter of the area of the triangle. if the perimeter is wanted, ask the measure of the three sides and compute for the perimeter. if the area is wanted, ask for the measures of the base and height and compute for the area. display the computed value

1 Answers  


how to create an anonymous function

0 Answers  


write a program to detect the user's browser ?

1 Answers   Infosys,


Exception in thread "main" java.lang.OutOfMemoryError: Java heap space:

2 Answers   TCS,


how to prevent an Event from performing its default behavior

0 Answers   CAE,


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)