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
What is this pointer in c plus plus?
What is the significance of c program algorithms?
Why is sprintf unsafe?
How can I get random integers in a certain range?
Why main is used in c?
Explain what happens if you free a pointer twice?
What is the advantage of an array over individual variables?
What is build process in c?
What does *p++ do?
Tell me with an example the self-referential structure?
Is it possible to have a function as a parameter in another function?
What is time complexity c?
What is maximum size of array in c?
What is array of pointers to string?
What is indirection in c?