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
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
What is the use of printf() and scanf() functions?
Why is c called c not d or e?
Do you have any idea about the use of "auto" keyword?
Explain how do you use a pointer to a function?
Are the variables argc and argv are local to main?
Which is better between malloc and calloc?
How pointer is different from array?
What are the different data types in C?
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
Does sprintf put null character?
What is pass by reference in functions?
What is data types?
What are the characteristics of arrays in c?
Explain the Difference between the New and Malloc keyword.