#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 || operator and how does it function in a program?
Difference between pass by reference and pass by value?
What is the benefit of using an enum rather than a #define constant?
What is %d called in c?
What are the types of arrays in c?
What is register variable in c language?
program to convert a integer to string in c language'
What is methods in c?
What is a list in c?
What is hash table in c?
c program for searching a student details among 10 student details
What is calloc malloc realloc in c?
What are terms in math?
What is main () in c?
What is a header file?