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



6)What would be the output? main() { int u=1,v=3; pf("%d%d",u,v); funct1(&u,&a..

Answer / aswini

Answer is 1 3 0 0.

Is This Answer Correct ?    9 Yes 1 No

6)What would be the output? main() { int u=1,v=3; pf("%d%d",u,v); funct1(&u,&a..

Answer / ramlal bishnoi

b)1 3 1 1

Is This Answer Correct ?    2 Yes 0 No

6)What would be the output? main() { int u=1,v=3; pf("%d%d",u,v); funct1(&u,&a..

Answer / rajesh

c) 1 3 0 0

Check www.codepad.org

Is This Answer Correct ?    1 Yes 0 No

6)What would be the output? main() { int u=1,v=3; pf("%d%d",u,v); funct1(&u,&a..

Answer / niranjan kumar niraj

a)1313

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Q-1: Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college.

8 Answers  


consider the following program sigment int n,sum=1; switch(n) { case 2:sum=sum+2; case 3:sum*=2; break; default:sum=0;} if n=2, what is the value of sum a.0 b.6 c.3 d.none

7 Answers   TCS,


main() { float a=3.2e40; printf("%d",a); }

9 Answers   Satyam,


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

0 Answers   Wilco,


What are categories used for in c?

0 Answers  






what is op? for(c=0;c=1000;c++) printf("%c",c);

21 Answers   Trigent,


what does " calloc" do?

7 Answers   Cadence, Logos,


 Illustrate it   summing the series 2+4+6+......to n terms using  (i) while loop (ii) do-while loop

2 Answers  


What is the proper way of these job Tell me about there full work

0 Answers   EDS,


What do you mean by scope of a variable in c?

0 Answers  


what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }

6 Answers   Microsoft,


What is %lu in c?

0 Answers  


Categories