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
How many loops are there in c?
What are keywords in c with examples?
a program that can input number of records and can view it again the record
Can static variables be declared in a header file?
What do you mean by dynamic memory allocation in c? What functions are used?
what value is returned to operating system after program execution?
What is the scope of global variable in c?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What is difference between scanf and gets?
How does pointer work in c?
Place the #include statement must be written in the program?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
What are Macros? What are its advantages and disadvantages?