write a program to rearrange the array such way that all even
elements should come first and next come odd


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

Post New Answer

More C Interview Questions

What are file streams?

0 Answers  


What is the use of ?: Operator?

0 Answers  


What is atoi and atof in c?

0 Answers  


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

0 Answers   TISL,


what is the most appropriate way to write a multi-statement macro?

1 Answers  






consider the following program sigment int n,sum=1; switch(n) { case 2:sum=sum+2; case 3:sum*=2; break; default:sum=0;} if n=2, what is the value of sum a.0 b.6 c.3 d.none

7 Answers   TCS,


Is it possible to run a c program without using main?If yes HOW??

13 Answers   Wipro,


write a c program to change only the 3rd bit of the particular number such that other bits are not affected.. if bitnum=10(say.. it can be any no..

10 Answers   Bosch, Mind Tree,


What is a symbolic constant?

1 Answers  


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

0 Answers  


#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf("\n%d",j) i+=j; } }

7 Answers   HCL,


What is d scanf?

0 Answers  


Categories