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 |
Develop a routine to reflect an object about an arbitrarily selected plane
void main() { void *v; int integer=2; int *i=&integer; v=i; printf("%d",(int*)*v); }
How to swap two variables, without using third variable ?
104 Answers AB, ADP, BirlaSoft, Cisco, Cygnet Infotech, HCL, Hewitt, Honeywell, HP, IBM, Infosys, Manhattan, Microsoft, Mobius, Percept, Satyam, SofTMware, TCS, Wipro, Yamaha,
Display the time of the system and display the right time of the other country
main() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
String reverse with time complexity of n/2 with out using temporary variable.
write a c program to print magic square of order n when n>3 and n is odd?
how can u draw a rectangle in C
53 Answers Accenture, CO, Codeblocks, Cognizant, HCL, Oracle, Punjab National Bank, SAP Labs, TCS, University, Wipro,
how to check whether a linked list is circular.
write a c program to Create employee record by taking details like name, employee id, address and phone number. While taking the phone number, take either landline or mobile number. Ensure that the phone numbers of the employee are unique. Also display all the details
Write a program to model an exploding firecracker in the xy plane using a particle system