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
What is the main difference between calloc () and malloc ()?
What are the advantages of using linked list for tree construction?
Do pointers need to be initialized?
What is the use of pragma in embedded c?
What is build process in c?
Explain what are global variables and explain how do you declare them?
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.
Why is c called a structured programming language?
Not all reserved words are written in lowercase. TRUE or FALSE?
Write a code to remove duplicates in a string.
Explain what are the different data types in c?
What is the data segment that is followed by c?
What is meant by keywords in c?
Differentiate between calloc and malloc.
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