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;
}
Answers were Sorted based on User's Feedback
What is pointer in c?
What is nested structure with example?
Tell me the use of bit field in c language?
What is time null in c?
Is javascript written in c?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
How to convert decimal to binary in C using recursion??
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); }
11 Answers CISOC, CitiGroup, College School Exams Tests,
What is pointer to pointer in c with example?
Is anything faster than c?
State the difference between realloc and free.
What language is lisp written in?