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 the difference between the = symbol and == symbol?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What are the features of the c language?
Explain 'far' and 'near' pointers in c.
What is 02d in c?
How can variables be characterized?
Is c object oriented?
Do you know pointer in c?
What is spaghetti programming?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What are the application of c?
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
What is a const pointer in c?
Explain the binary height balanced tree?
What is the purpose of sprintf() function?