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


Please Help Members By Posting Answers For Below Questions

Give me the code of in-order recursive and non-recursive.

883


What is the difference between array and pointer in c?

577


What is p in text message?

536


Write a program which returns the first non repetitive character in the string?

597


How variables are declared in c?

569






How to create struct variables?

588


Can the size of an array be declared at runtime?

602


Can you please explain the difference between syntax vs logical error?

692


How many types of functions are there in c?

581


Explain what is the benefit of using enum to declare a constant?

586


Explain what is the stack?

634


Are comments included during the compilation stage and placed in the EXE file as well?

668


What is difference between arrays and pointers?

577


What is optimization in c?

562


What is the difference between text and binary i/o?

586