6)What would be the output?
main()
{
int u=1,v=3;
pf("%d%d",u,v);
funct1(&u,&v);
pf("%d%d\n",u,v);
}
void funct1(int *pu, int *pv)
{
*pu=0;
*pv=0;
return;
}
a)1 3 1 3
b)1 3 1 1
c)1 3 0 0
d)1 1 1 1
e) 3 1 3 1
Answers were Sorted based on User's Feedback
cavium networks written test pattern ..
main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(ā%dā,x); }
1. main() { printf("%d",printf("HelloSoft")); } Output?
write a program to create a sparse matrix using dynamic memory allocation.
what is the differance between pass by reference and pass by value.
Differentiate between functions getch() and getche().
How do you initialize pointer variables?
write a programme to convert temperature from farenheit to celcius?
#define d 10+10 main() { printf("%d",d*d); }
For what purpose null pointer used?
What's the best way of making my program efficient?
What do you mean by invalid pointer arithmetic?