| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| can we write a program in c for printf and scanf without
using header file stdio.h | | 1 |
| pgm to reverse string using arrays i.e god is love becomes
love is god)
(assumption:only space is used for seperation of words)
no addtional memory used.i.e no temporary arrays can used. | Persistent | 4 |
| How to find the given no is odd or even without checking of
any condition and loops. (Hint: Using array) | | 4 |
| Why is conio.h not required when we save a file as .c and
use clrscr() or getch() ? | | 2 |
| I have an array of 100 elements, each of which is a random
integer. I want to know which of the elements:
a) are multiples of 2
b) are multiples of 2 AND 5
c) have a remainder of 3 when divided by 7 | | 1 |
| write a program to search for an element in a given array.
If the array was found then display its position otherwise
display appropriate message in c language | | 3 |
| 2. Counting in Lojban, an artificial language developed
over the last fourty years, is easier than in most languages
The numbers from zero to nine are:
0 no
1 pa
2 re
3 ci
4 vo
5 mk
6 xa
7 ze
8 bi
9 so
Larger numbers are created by gluing the digit togather.
For Examle 123 is pareci
Write a program that reads in a lojban string(representing
a no less than or equal to 1,000,000) and output it in
numbers.
| Nagarro | 2 |
| Would you rather wait for the results of a quicksort, a
linear search, or a bubble sort on a 200000 element array?
1) Quicksort
2) Linear Search
3) Bubble Sort
| | 2 |
| O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N | ADP | 9 |
| can we print any string without using terminator? | Infosys | 2 |
| Write a program to exchange two variaables without temp | Geometric-Software | 6 |
| Program to find the absolute value of given integer using
Conditional Operators | N-Tech | 2 |
| If 4 digits number is input through the keyboard, Write a
program to calculate sum of its 1st & 4th digit. | | 4 |
| how to convert binary to decimal and decimal to binary in C
lanaguage | | 4 |
| write a program to find out number of on bits in a number?
| Huawei | 12 |
| program to find the ASCII value of a number | | 5 |
| C program to find frequency of each character in a text
file? | | 3 |
| what is the difference between #include<stdio.h> and
#include"stdio.h" ? | TCS | 5 |
| write a C code
to reverse a string using a recursive function, without
swapping or using an extra memory.
| Motorola | 2 |
| will the program compile? int i; scanf(“%d”,i); printf(“%d”,i); | | 2 |
| |
| For more C Interview Questions Click Here |