main(int argc, char **argv)
{
printf("enter the character");
getchar();
sum(argv[1],argv[2]);
}
sum(num1,num2)
int num1,num2;
{
return num1+num2;
}
Answer / susie
Answer :
Compiler error.
Explanation:
argv[1] & argv[2] are strings. They are passed to the
function sum without converting it to integer values.
| Is This Answer Correct ? | 5 Yes | 1 No |
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
how to check whether a linked list is circular.
Which version do you prefer of the following two, 1) printf(ā%sā,str); // or the more curt one 2) printf(str);
Is it possible to print a name without using commas, double quotes,semi-colons?
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
Sir... please give some important coding questions asked by product companies..
prog. to produce 1 2 3 4 5 6 7 8 9 10
main() { char c; int i = 456; clrscr(); c = i; printf("%d", c); } a. 456 b. -456 c. random number d. none of the above
How can you relate the function with the structure? Explain with an appropriate example.
Is the following code legal? typedef struct a { int x; aType *b; }aType
main() { int i = 257; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }