| 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 |
| wite a programme in c to linear search a data using flag and
without using flags? | TCS | 3 |
| int arr[] = {1,2,3,4}
int *ptr=arr;
*(arr+3) = *++ptr + *ptr++;
Final contents of arr[]
| Hughes | 4 |
| What are .h files and what should I put in them? | | 3 |
| if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND
CORRESPONDING VALUE FROM ASCII TABLE | | 1 |
| What is the output of following program ?
int
main()
{
int x = 5;
printf("%d %d %d\n", x, x << 2, x >> 2);
} | Qualcomm | 3 |
| What is a class? | | 2 |
| how memory store byte
| Huawei | 3 |
| Write a C program to print 1 2 3 ... 100 without using
loops? | | 5 |
| Write a c code segment using a for loop that calculates and
prints the sum of the even integers from 2 to 30, inclusive? | | 2 |
| program to find a smallest number in an array | Microsoft | 5 |
| WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE
GIVEN VALUES | | 1 |
| 2. What is the function of ceil(X) defined in math.h do?
A)It returns the value rounded down to the next lower
integer
B)it returns the value rounded up to the next higher integer
C)the Next Higher Value
D)the next lower value
| Accenture | 2 |
| An interactive c program to read basic salary of 15
persons. each person gets 25% of basic as HRA, 15%of basic
as conveyance allowances, 10%of basic as entertainment
allowances.The total salary is calculated by adding
basic+HRA+CA+EA.Calculate how many out of 15 get salary
above 10,000.Rs also print the salary of each employee | | 2 |
| Difference Between embedded software and soft ware? | Bosch | 1 |
| write a c program to accept a given integer value and print
its value in words | | 3 |
| how we can make 3d venturing graphics on outer interface | Microsoft | 1 |
| what is meant by the "equivalence of pointers and arrays" in
C? | Satyam | 3 |
| 52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2? | | 6 |
| what is the diff b/w static and non static variables in C.
Give some examples plz. | Wipro | 2 |
| |
| For more C Interview Questions Click Here |