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

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,


Explain what happens if you free a pointer twice?

0 Answers  


Explain bitwise shift operators?

0 Answers  


How to create struct variables?

0 Answers  


How can I change their mode to binary?

0 Answers  


how to make program without <> in library.

1 Answers   ADITI,


What is C language ?

0 Answers   Jekson,


What is the restrict keyword in C?

2 Answers  


What functions are used in dynamic memory allocation in c?

0 Answers  


how to write a bubble sort program without using temporary variable?

1 Answers   Aricent,


Explain the difference between struct and union.

2 Answers  


How can I use a preprocessorif expression to ?

0 Answers  


Categories