Capgemini Interview Experience for Fresher SDE - 1,
Oct 2019
Online assessment consists of :-
Section 1: Pseudocode and coding round
after this section there was english communication based assessment based on passages , jumbled words
section 2: game-based aptitude (not elimination round)
Section 3: Behaviour competency (not elimination round)
...
What will be the output of the following code snippet?
#include int foo(int* a, int* b){
int sum = *a + *b; *b = *a;
return *a = sum - *b;}
int main(){ int i = 0, j = 1, k = 2, l;
l = i++ || foo(&j, &k);
printf("%d %d %d %d", i, j, k, l);
return ...
Consider the following C function
void swap ( int x, int y ){ int tmp; tmp = x; x = y; y = tmp;}
In order to exchange the values of two variables a and b:a)
Call swap (a, b)b) Call swap (&a, &b)c) swap(a, b) cannot be used as it does not return any valued) swap(a, b) cannot be used as the parameters passed b...
#includeint main(){for (int x = 10; x >= 0; x--) {int z = x & (x >> 1);if (z)printf("%d ", x);}}