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;
}

Answers were Sorted based on User's Feedback



What is the output from this program? #include <stdio.h> void do_something(int *thisp, ..

Answer / kruthi

0001 35

Is This Answer Correct ?    2 Yes 0 No

What is the output from this program? #include <stdio.h> void do_something(int *thisp, ..

Answer / srikanth karnati

1,35

Is This Answer Correct ?    2 Yes 0 No

What is the output from this program? #include <stdio.h> void do_something(int *thisp, ..

Answer / hasan kayman

###1##35 (# sign means space)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

0 Answers  


What is a macro?

0 Answers  


What is the use of function in c?

0 Answers  


Hi can anyone tell what is a start up code?

0 Answers   CTS,


what is C?

9 Answers   Syntel,






What is difference between scanf and gets?

0 Answers  


In which language linux is written?

0 Answers  


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

0 Answers   IBM,


How to write a multi-statement macro?

0 Answers  


print the following using nested for loop. 5 4 3 2 1 1 2 3 4 3 2 1 1 2 1 2 1 1 2 3 4 3 2 1 1 2 3 4 5

7 Answers   IBM,


Tell me about low level programming languages.

0 Answers   Amdocs,


accept character from keyboard untill the user presses the enter key.If the user enters any character other than upper case(A-Z)alphabets program should stop taking any input

1 Answers  


Categories