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 / srikanth karnati

1,35

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is this pointer in c plus plus?

599


What is the significance of c program algorithms?

683


Why is sprintf unsafe?

620


How can I get random integers in a certain range?

614


Why main is used in c?

590






Explain what happens if you free a pointer twice?

614


What is the advantage of an array over individual variables?

745


What is build process in c?

646


What does *p++ do?

588


Tell me with an example the self-referential structure?

567


Is it possible to have a function as a parameter in another function?

600


What is time complexity c?

569


What is maximum size of array in c?

585


What is array of pointers to string?

571


What is indirection in c?

630