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

Explain what are preprocessor directives?

1130


What is main () in c language?

1187


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3381


Explain goto?

1207


Explain how can you avoid including a header more than once?

1147


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1289


What does %d do in c?

1012


What is the significance of an algorithm to C programming?

1096


What is the use of bit field?

1239


How do I swap bytes?

1121


Add Two Numbers Without Using the Addition Operator

882


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

1158


Difference between strcpy() and memcpy() function?

1217


What's the total generic pointer type?

1109


Is multithreading possible in c?

1070