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


what's the o/p
int main(int n, char *argv[])
{
char *s= *++argv;
puts(s);
exit(0);
}



what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); } ..

Answer / sreed

first command line argument

lets say..
exe for above prog is a.out

execute command
a.out arg1 arg2 arg3

then out put will be arg1

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

Why is event driven programming or procedural programming, better within specific scenario?

0 Answers   Wipro,


What is a void pointer in c?

0 Answers  


c program to input values in a table(using 2D array) and print odd numbers from them

1 Answers  


What are the features of the c language?

0 Answers  


Define C in your own Language.

0 Answers   Motorola,


What do you know about the use of bit field?

0 Answers  


What is a wrapper function in c?

0 Answers  


How to swap 3 numbers without using 4th variable?

5 Answers  


How many data structures are there in c?

0 Answers  


1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?

3 Answers   Qualcomm,


What is header file definition?

0 Answers  


write a 'c' program to sum the number of integer values

8 Answers  


Categories