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
Explain what is the use of a semicolon (;) at the end of every program statement?
What is storage class?
How to delete a node from linked list w/o using collectons?
What's the right way to use errno?
What are the similarities between c and c++?
Explain what is wrong in this statement?
What are pragmas and what are they good for?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is structure data type in c?
What is a c token and types of c tokens?
Explain what are binary trees?
What is break statement?
Why flag is used in c?
What is the difference between variable declaration and variable definition in c?
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. The Logic should be written in Data Structures?