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 / hasan kayman

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

2736


What is the use of printf() and scanf() functions?

622


Why is c called c not d or e?

602


Do you have any idea about the use of "auto" keyword?

660


Explain how do you use a pointer to a function?

636






Are the variables argc and argv are local to main?

780


Which is better between malloc and calloc?

664


How pointer is different from array?

573


What are the different data types in C?

721


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

803


Does sprintf put null character?

591


What is pass by reference in functions?

318


What is data types?

632


What are the characteristics of arrays in c?

605


Explain the Difference between the New and Malloc keyword.

680