Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

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

4 Answers  


print pattern 1 1 33 33 555 555 77777777 555 555 33 33 1 1

1 Answers   Winit,


Please list all the unary and binary operators in C.

3 Answers  


Create a simple code fragment that will swap the values of two variables num1 and num2.

0 Answers  


Explain how can type-insensitive macros be created?

0 Answers  






what are bitwise shift operators?

4 Answers  


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  


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

0 Answers  


Explain what is the purpose of "extern" keyword in a function declaration?

0 Answers  


How can I write a function analogous to scanf?

0 Answers  


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

0 Answers   Aspire, Infogain,


What is the significance of scope resolution operator?

0 Answers   Agilent, ZS Associates,


Categories