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

what is the maximum limit of row and column of a matrix in c programming. in linux .

4 Answers   NIIT,


Explain this code. #include <stdio.h> void f1(int *k) { *k = *k + 10; } main ( ){ int i; i = 0; printf (" The value of i before call %d \n", i); f1 (&i); printf (" The value of i after call %d \n", i); }

3 Answers   IBM,


what are the languages used in c#?

3 Answers   Infosys,


write a c/c++ programthat connects to a MYSQL server and checks if the INNoDB plug in is installed on it.If so your program should print the total number of disk writes by MYSQL.

0 Answers   BirlaSoft,


Why is structure important for a child?

0 Answers  


what is bit rate & baud rate? plz give wave forms

0 Answers  


How do you redirect a standard stream?

0 Answers  


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

0 Answers  


Explain how do you convert strings to numbers in c?

0 Answers  


Hai why 'c' is the middle language

4 Answers  


Tell me when would you use a pointer to a function?

0 Answers  


In a byte, what is the maximum decimal number that you can accommodate?

0 Answers  


Categories