| Other C Interview Questions |
|| Asked @
|Write a C program that reads a series of strings and prints
only those ending in "ed"
|Which of the following are valid "include" formats?
A)#include and #include[file.h]
B)#include (file.h) and #include
C)#include [file.h] and #include "file.h"
D)#include <file.h> and #include "file.h"
|What is volatile
|What is the difference between %d and %*d in C
|Write the following function in C.
stripos — Find position of first occurrence of a case-
int stripos ( char* haystack, char* needle, int offset )
Returns the numeric position of the first occurrence of
needle in the
haystack string. Note that the needle may be a string of
one or more
characters. If needle is not found, stripos() will return -
The function should not make use of any C library function
|How would you print out the data in a binary tree, level by
level, starting at the top?
|What is the output of following program ?
int x = 5;
printf("%d %d %d\n", x, x << 2, x >> 2);
|Write a program or provide a pseudo code to flip the 2nd bit
of the 32 bit number ! (Phone Screen)
|Difference between data structure and data base.
|Define function pointers?
|how to write hello word without using semicolon at the end?
|For more C Interview Questions Click Here |