#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
What is the use of function overloading in C?
Why pointers are used in c?
What is structure of c program?
in linking some of os executables are linking name some of them
When should the volatile modifier be used?
Explain what are compound statements?
Why structure is used in c?
How can I convert a number to a string?
Describe the order of precedence with regards to operators in C.
Why we use conio h in c?
Explain what is a program flowchart and explain how does it help in writing a program?
How can you draw circles in C?
When should the register modifier be used? Does it really help?
What are the benefits of c language?
How can you increase the size of a dynamically allocated array?