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
Explain a pre-processor and its advantages.
what are # pragma staments?
What are bitwise shift operators in c programming?
Write a code on reverse string and its complexity.
What are c preprocessors?
What's the total generic pointer type?
a c code by using memory allocation for add ,multiply of sprase matrixes
What is the ANSI C Standard?
How can I ensure that integer arithmetic doesnt overflow?
Differentiate call by value and call by reference?
Is using exit() the same as using return?
Explain the advantages and disadvantages of macros.
What does char * * argv mean in c?
What is the use of parallelize in spark?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]