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 / srikanth karnati
1,35
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is the use of ?: Operator?
Explain union.
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
Is it acceptable to declare/define a variable in a c header?
List the difference between a "copy constructor" and a "assignment operator"?
What is the difference between union and structure in c?
Explain about the constants which help in debugging?
Explain what math functions are available for integers? For floating point?
what is the height of tree if leaf node is at level 3. please explain
What is calloc malloc realloc in c?
Is c is a low level language?
write a program to concatenation the string using switch case?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is typedef struct in c?