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

what would be the output of the following program main() { int a[] = {1,2,3,4,5}; int *ptr = {a,a+1,a+2,a+3,a+4}; printf("%d %d %d %d",a,*ptr,**ptr,ptr); } }

1 Answers  


What is the use of getch ()?

0 Answers  


palindrome for strings and numbers----Can anybody do the prog?

6 Answers   CTS, TCS, Vipro Lifescience Pvt,


what is the program to display your name in any color?

2 Answers   HCL,


program to find the roots of a quardratic equation

1 Answers  


Write a program to print factorial of given number without using recursion?

0 Answers  


What is c programing language?

0 Answers  


#&#8206;include&#8236;<stdio.h> void main() { int i; for(i=5;0;i++) { printf("%d",i); } }

2 Answers   Facebook,


What are unions in c?

0 Answers  


how to build a exercise findig min number of e heap with list imlemented?

0 Answers  


What is the difference between volatile and const volatile?

0 Answers  


Which are low level languages?

0 Answers  


Categories