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);
}

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does c mean before a date?

1178


What are the different types of control structures in programming?

1132


Explain what is a pragma?

1047


What are predefined functions in c?

1094


Write a program in c to replace any vowel in a string with z?

1125


Explain what is the best way to comment out a section of code that contains comments?

1139


What is #define used for in c?

1062


Explain the difference between getch() and getche() in c?

998


how we can make 3d venturing graphics on outer interface

4832


What is the total generic pointer type?

1159


What is a stream in c programming?

1149


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1944


What are the different properties of variable number of arguments?

1161


Place the #include statement must be written in the program?

1039


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2426