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 are keywords c?

0 Answers  


What is assert and when would I use it?

0 Answers  


What is the scope of static variable in c?

0 Answers  


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

0 Answers  


What is main void in c?

1 Answers  






What is the advantage of a random access file?

0 Answers  


WAP to find that given no is small or capital

3 Answers  


What is the difference between scanf and fscanf?

0 Answers  


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

0 Answers  


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

0 Answers   Aspire, Infogain,


what is the use of operator ^ in C ? and how it works?

2 Answers  


The code is::::: if(condition) Printf("Hello"); Else Printf("World"); What will be the condition in if in such a way that both Hello and world are printed in a single attempt?????? Single Attempt in the sense... It must first print "Hello" and it Must go to else part and print "World"..... No loops, Recursion are allowed........................

14 Answers   HOV Services, IBM, Potty,


Categories