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
Answer Posted / aswini
Answer is 1 3 0 0.
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What’s the special use of UNIONS?
What does & mean in scanf?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What is an example of structure?
Explain how does free() know explain how much memory to release?
Why c is called a middle level language?
What math functions are available for integers? For floating point?
What are the uses of null pointers?
What do you mean by Recursion Function?
What does d mean?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
Is javascript written in c?
How do shell structures work?
What oops means?