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;
}

Answer Posted / kruthi

0001 35

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many loops are there in c?

570


What are keywords in c with examples?

597


a program that can input number of records and can view it again the record

1476


Can static variables be declared in a header file?

606


What do you mean by dynamic memory allocation in c? What functions are used?

640






what value is returned to operating system after program execution?

1593


What is the scope of global variable in c?

548


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

1512


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7385


How can I rethow can I return a sequence of random numbers which dont repeat at all?

700


What is difference between scanf and gets?

604


How does pointer work in c?

608


Place the #include statement must be written in the program?

563


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

575


What are Macros? What are its advantages and disadvantages?

632