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
What are the different data types in C?
What is the difference between if else and switchstatement
How does sizeof know array size?
Explain what is the concatenation operator?
Is it possible to pass an entire structure to functions?
Explain the difference between strcpy() and memcpy() function?
What is echo in c programming?
Difference between Shallow copy and Deep copy?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is a const pointer in c?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
What is property type c?
How do you define structure?
Are global variables static in c?
What is the difference between the = symbol and == symbol?