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 / kruthi

0001 35

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main difference between calloc () and malloc ()?

574


What are the advantages of using linked list for tree construction?

645


Do pointers need to be initialized?

565


What is the use of pragma in embedded c?

593


What is build process in c?

646






Explain what are global variables and explain how do you declare them?

644


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1621


Why is c called a structured programming language?

681


Not all reserved words are written in lowercase. TRUE or FALSE?

720


Write a code to remove duplicates in a string.

630


Explain what are the different data types in c?

761


What is the data segment that is followed by c?

616


What is meant by keywords in c?

618


Differentiate between calloc and malloc.

761


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

662