#include <stdio.h>

int main ( int argc, char* argv [ ] )
{
int value1 = 10;
int value2 = 5;
printf ( "\n The sum is :%d", value1 | value2 );

}
This is the answer asked by some one to add two numbers
with out using arithmetic operator?Yes this answer is write
it given out put as 15.But how?????
what is need of following line?
int main ( int argc, char* argv [ ] )
how it work?what is the meaning for this line?
please explain me.Advance thanks

Answer Posted / vijay

argc means argument count
argv means argument vector
argc contains the no of arguments and argv[] contains the
argument values

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of organizational structure?

567


What is a volatile keyword in c?

634


What are void pointers in c?

574


What is the explanation for prototype function in c?

564


What is meant by gets in c?

604






When should volatile modifier be used?

550


How a string is stored in c?

583


Explain how can I convert a number to a string?

640


What is a c token and types of c tokens?

585


Explain what are multidimensional arrays?

596


What is the size of a union variable?

596


What is identifiers in c with examples?

672


Without Computer networks, Computers will be half the use. Comment.

1867


What is #include stdio h and #include conio h?

594


What is the difference between array and linked list in c?

593