What is the output from this program?
#include <stdio.h>
void do_something(int *thisp, int that)
{
int the_other;
the_other = 5;
that = 2 + the_other;
*thisp = the_other * that;
}
int main(void)
{
int first, second;
first = 1;
second = 2;
do_something(&second, first);
printf("%4d%4d\n", first, second);
return 0;
}
Answers were Sorted based on User's Feedback
What do you mean by Recursion Function?
What are static variables, and where are they stored?
Can a program have multiple main() functions?
What is a c token and types of c tokens?
Multiply an Integer Number by 2 Without Using Multiplication Operator
How to print India by nested loop? I IN IND INDI INDIA
in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Can I pass constant values to functions which accept structure arguments?
with out using main how to execute the program?
What is the benefit of using #define to declare a constant?
What is the difference between malloc calloc and realloc in c?