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

write a recursive program in'c'to find whether a given five digit number is a palindrome or not

2 Answers  


write a function to swap an array a[5] elements like a[0] as a[5],a[1] as a[4],....a[5] as a[0].without using more than one loop and use one array not to use temp array?

1 Answers   Zensar,


What is the value of uninitialized variable in c?

0 Answers  


Is the C language is the portable language...If yes...Then Why...and if not then what is problem so it is not a Portable language..???

2 Answers   TCS,


Is c compiled or interpreted?

0 Answers  






HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

0 Answers  


main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(ā€œ%dā€,x); }

8 Answers   Vector,


What does void main () mean?

0 Answers  


What is pointer in c?

0 Answers  


What is the relationship between pointers and data structure?

0 Answers  


which of 'arrays' or 'pointers' are faster?

5 Answers  


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

0 Answers  


Categories