#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 is null in c?

744


Write a program to check palindrome number in c programming?

771


how can use subset in c program and give more example

1674


What is a MAC Address?

807


Explain what are the __date__ and __time__ preprocessor commands?

842


Why ca not I do something like this?

764


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3495


If you know then define #pragma?

852


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

884


Do you know pointer in c?

791


What is a double c?

756


What is the purpose of void pointer?

777


What is the value of c?

759


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

5733


What are the different types of objects used in c?

732