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
List the different types of c tokens?
how to swap 4 number without using temporary number?
write a program to swap Two numbers without using temp variable.
75 Answers EMC, Focus, GreyB, HCL, Hitech, HP, Huawei, Infosys, Mannar Company, Microsoft, Miles Software, Odessa Technologies, Satyam, TCS, Wipro,
write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"
Explain how can you determine the size of an allocated portion of memory?
is it possible to change the default calling convention in c ?
What does the error message "DGROUP exceeds 64K" mean?
A C E G H +B D F A I ------------ E F G H D
What are categories used for in c?
Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.
Explain how are 16- and 32-bit numbers stored?
What is the heap?