Don’t worry, unlock all articles / blogs on PrepInsta by just simply logging in on our website
Type atleast 3 characters
Popular Searches
Trending Pages
Notifications Mark All Read
No New notification
Capgemini Menu9>
PREPINSTA PRIME
Get Hiring Updates right in your inbox from PrepInsta
Question 1
strnstr()
laststr()
strrchr()
strstr()
Start
Question 2
1 : extern int x; 2 : float square ( float x ) { ... } 3 : double pow(double, double);
1
2
3
1 & 3
Question 3
1,4
2,3
2,4
Question 4
#include<stdio.h> void fun(int **p); int main() { int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 8, 7, 8, 9, 0}; int *ptr; ptr = &a[0][0]; fun(&ptr); return 0; } void fun(int **p) { printf("%d\n", **p); }
4
Question 5
#include<stdio.h> int main() { int arr[] = {12, 14, 15, 23, 45}; printf("%u, %u\n", arr, &arr); return 0; }
65486, 65486
65486, 65488
65486, 65490
65486, 65487
Question 6
#include<stdio.h> int main() { char ch; ch = 'A'; printf("The letter is "); printf("%c", ch >= 'A' && ch <= 'Z' ? ch + 'a' - 'A':ch); printf("\nNow the letter is "); printf("%c\n", ch >= 'A' && ch <= 'Z' ? ch : ch + 'a' - 'A'); return 0; }
Error
The letter is A Now the letter is a
The letter is a Now the letter is A
None of the mentioned
Question 7
#include<stdio.h> int main() { int i=-3, j=2, k=0, m; m = ++i && ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; }
-2, 3, 1, 1
2, 3, 1, 2
1, 2, 3, 1
3, 3, 1, 2
Question 8
#include<stdio.h> int main() { int i=4, j=-1, k=0, w, x, y, z; w = i || j || k; x = i && j && k; y = i || j &&k; z = i && j || k; printf("%d, %d, %d, %d\n", w, x, y, z); return 0; }
1, 1, 1, 1
1, 1, 0, 1
1, 0, 1, 1
1, 0, 0, 1
Question 9
#include<stdio.h> int main() { int i=3; i = i++; printf("%d\n", i); return 0; }
5
6
Question 10
#include<stdio.h> int main() { int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m); return 0; }
2, 1, 15
1, 2, 5
3, 2, 15
2, 3, 20
Please login to report
Buy Capgemini Pseudo Code Paid Materials
Join Capgemini Online Classes