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 pointers are used in c?

0 Answers  


What is key word in c language?

4 Answers   ABC,


Explain Basic concepts of C language?

0 Answers   EXL,


What is sizeof in c?

0 Answers  


How do you sort filenames in a directory?

0 Answers  


What are the various topologies? Which one is the most secure?

2 Answers  


What are external variables in c?

0 Answers  


difference between c and c++

3 Answers  


List some applications of c programming language?

0 Answers  


Explain what is the heap?

0 Answers  


How can I do graphics in c?

0 Answers  


Explain how can I avoid the abort, retry, fail messages?

0 Answers  


Categories