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
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
which is faster execution: loops or recursion?
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side? Upload a C program to demonstrate the behaviour of the game.
What is Function Pointer? Explain with example?
What is a string?
What is a rvalue?
Write a program that accept anumber in words
Why do we use pointer to pointer in c?
What is a nested loop?
Explain about the functions strcat() and strcmp()?
for questions 14,15,16,17 use the following alternatives:a.int b.char.c.string.d.float
Write a C function to search a number in the given list of numbers. donot use printf and scanf