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
array contains zeros and ones as elements.we need to bring zeros one side and one other side in single parse. ex:a[]={0,0,1,0,1,1,0,0} o/p={0,0,0,0,0,1,1,1}
What is break in c?
Is anything faster than c?
c program to input values in a table(using 2D array) and print odd numbers from them
What is the difference between memcpy and memmove?
write a program to display the array elements in reverse order in c language
what is difference between array of characters and string
What is memmove?
how do we remove the printed character in printf statement and write next it it
a linear linked list such that the link field of its last node points to the first node instead of containing NULL a) linked list b) circular linked list c) sequential linked list d) none
Explain pointer. What are function pointers in C?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?