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 is #line in c?
What are the uses of a pointer?
Can we declare variable anywhere in c?
What is the condition that is applied with ?: Operator?
what is the difference between i++ and ++i?
How can you return multiple values from a function?
What is the purpose of clrscr () printf () and getch ()?
wat are the two methods for swapping two numbers without using temp variable??
wap to print "hello world" without using the main function.
Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female
What are predefined functions in c?
program to print upper & lower triangle of a matrix