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

Define VARIABLE?

1154


Is it better to use malloc() or calloc()?

1094


How can I send mail from within a c program?

1012


What are predefined functions in c?

1075


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

1074


How will you find a duplicate number in a array without negating the nos ?

2117


How can you check to see whether a symbol is defined?

1091


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

5447


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

1117


Explain how do you print an address?

1127


What is header file in c?

1054


How are structure passing and returning implemented?

1023


Is there any possibility to create customized header file with c programming language?

1052


What is the use of clrscr?

1093


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1059