Aptitude Question:
Download Questions PDF

What is the maximum no. of arguments that can be given in a command line in C?

Answer:

for a program
int main(int argc, char **argv) ....
^^^^
sizeof(int) number of arguments are possible
hence 32767 args are possible for a 32 bit computer

Download Aptitude Interview Questions And Answers PDF

Previous QuestionNext Question
What is the value of the following series
1/7 + 2/72 + 1/73 +2/74 + 1/75 + ______
What is the o/p of the following C-program?
Main()
{
Char *str[] = { "Frogs"," do", "not", "die", "they", "croak!");
Printf("%d %d",sizeof(str),sizeof(str[0]));
}