New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter


Posted Date: 21 Jul 2009      Posted By: vijay anand      Member Level: Gold       Category: Aptitude Test

If the following program(myprog) is run from the command line as myprog 1 2 3 what would be the output?



main(int argv,char *argv[])
{
int i,j=0;
for(i=0;i j=j+atoi(argv[i]);
printf("%d",j);
}


Select Answer:

123
6
error
"123"




      
Your Test Score: 0 / 0



Next Question: If the following program(myprog) is run from the command line as myprog 1 2 3 what would be the output?
Previous Question: Find the output for the following program?
Related Questions:
  • If the letters of the word "rachit" are arranged in all possible ways and these words are written out as in a dictionary, what is the rank of the word "rachit".


  • Perimeter of the back wheel = 9 feet, front wheel = 7 feet on a certain distance, the front wheel gets 10 revolutions more than the back wheel .What is the distance?


  • A man collects cigarette stubs and makes one full cigarette with every 8 stubs. If he gets 64 stubs how many full cigarettes can he smoke. As the trains start, a bird flies from one train towards the other and on reaching the second train, it flies back to the first train.This is repeated till the trains collide. If the speed of the trains is 25 km/h and that of the bird is 100km/h. How much did the bird travel till the collision.


  • a train speeds past a pole in 15 seconds and a platform 100 m long in 25 seconds. its length is


  • Abdul goes to market to buy bananas. If he can bargain and reduce the price per dozen by rs.2 he can buy 3 dozen bananas instead of 2 dozen with the money he has .how much money does he have?


  • Categories

    Aptitude Test Arithmetic Reasoning General Knowledge - India 
    General Knowledge Computer Basics Physics 
    Mathematics - Basic Biology Chemistry 
    English Botany Anatomy 
    Physiology Biochemistry Pharmacology 
    Community medicine Forensic medicine Microbiology 
    Pathology Paediatrics Ophthalmology 
    ENT Obstretics and Gynaecology Surgery 
    Medicine Indian History Indian Economy 
    Indian Politics Indian Geography India - Miscellaneous 
    World History World Economy World Politics 
    World Geography World - Miscellaneous Science 
    Miscellaneous Legal Reasoning and Knowledge Logical Reasoning 

    Submit Interview/Test Questions with Answers and make money from adsense revenue sharing program

    Want to prepare for an interview? Try our aptitude tests and standard interview questions first.


    Advertise Here





    Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

    ISC Technologies.
    2006 - 2009 All Rights Reserved.