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

Write a simple code fragment that will check if a number is positive or negative.

0 Answers  


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

0 Answers  


Is c procedural or functional?

0 Answers  


What is the difference between test design and test case design?

0 Answers  


What is the data segment that is followed by c?

0 Answers  






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

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

0 Answers   IBM,


how to find string length wihtout using c function?

6 Answers  


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

0 Answers   HCL,


what is the difference between while and do while?

2 Answers  


How does sizeof know array size?

0 Answers  


Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250

0 Answers  


Categories