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 methods in c?
What is the size of array float a(10)?
What are the advantages of using Unions?
Can we declare function inside main?
Can you write a programmer for FACTORIAL using recursion?
Explain the Difference between the New and Malloc keyword.
What is the benefit of using an enum rather than a #define constant?
Differentiate fundamental data types and derived data types in C.
Write a function that will take in a phone number and output all possible alphabetical combinations
What is multidimensional arrays
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
Why c is called a mid level programming language?
Write the syntax and purpose of a switch statement in C.
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What is the scope of global variable in c?