#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

how to create duplicate link list using C???

2077


What does the characters “r” and “w” mean when writing programs that will make use of files?

862


What is null pointer in c?

598


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1484


Explain what is the difference between the expression '++a' and 'a++'?

629






How can my program discover the complete pathname to the executable from which it was invoked?

663


explain what is a newline escape sequence?

692


What is c language and why we use it?

626


can we have joblib in a proc ?

1659


Is there a way to switch on strings?

623


What is sizeof int in c?

606


Is it fine to write void main () or main () in c?

549


Explain a file operation in C with an example.

665


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1543


What is the data segment that is followed by c?

617