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 / hasan kayman
###1##35 (# sign means space)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is strcpy() function?
What is an identifier?
Explain data types & how many data types supported by c?
By using C language input a date into it and if it is right?
what is a constant pointer in C
Can the size of an array be declared at runtime?
Write a program to generate random numbers in c?
What is hashing in c language?
What is #line?
Explain can static variables be declared in a header file?
Write a program with dynamically allocation of variable.
What are conditional operators in C?
How can variables be characterized?
Write a program to find the biggest number of three numbers in c?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }