Top 50 Questions of Basic C Programming Asked in Interviews
Top 50 Questions of Basic C Programming Asked in Interviews
39.
How to scan a string till we hit a new line using scanf()?
40.
Write pseudocode to compare versions (like 115.10.1 vs 115.11.5).
41.
How do you get the line numbers in C?
42.
Write your own sqrt() function in C.
43.
Write a simple piece of code to split a string at equal intervals.
44.
Is there a way to multiply matrices in lesser than o(n^3) time complexity?
45.
How do you find out if a machine is 32 bit or 64 bit?
46.
Write a program to have the output go two places at once (to the screen and to a file also).
47.
How can we sum the digits of a given number in single statement?
48.
Given two strings A and B, how would you find out if the characters in B were a subset of the characters in A?
49.
Write a program to merge two arrays in sorted order, so that if an integer is in both the arrays, it gets added into the
final array only once.
50.
Write your own trim() or squeeze() function to remove the spaces from a string.