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

Is it possible to create recycle bin in mobiles?

2 Answers  


Explain what is a static function?

0 Answers  


If the static variable is declared as global, will it be same as extern?

1 Answers   Samsung,


What is linear search?

0 Answers  


write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+

1 Answers   Reliance,






An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

0 Answers  


coding for Fibonacci.?

1 Answers  


What is a const pointer in c?

0 Answers  


What are the 5 organizational structures?

0 Answers  


State the difference between realloc and free.

0 Answers   Aricent,


what is ur strangth & weekness

0 Answers   Cognizant, LG Soft, NetEnrich,


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

0 Answers  


Categories