| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the most efficient way to count the number of bits
which are set in a value? | | 3 |
| How would you find a cycle in a linked list?
| | 2 |
| write a program to display the array elements in reverse
order in c language | | 6 |
| main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
| CitiGroup | 17 |
| what is the difference between strcpy() and memcpy() function? | | 1 |
| what does the following function print?
func(int i)
{
if(i%2)return 0;
eale return 1;
}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);}
| TCS | 8 |
| Write a C program that computes the value ex by using the
formula
ex =1+x/1!+x2/2!+x3+3!+………….
| | 1 |
| how to find out the inorder successor of a node in a tree?? | TCS | 2 |
| how to make c program without a libary?
e.g.#include<stdio.h> libary is not in c progaram. | | 1 |
| Implement a function that returns the 5th element from the
end in a singly linked list of integers in one pass. | Microsoft | 6 |
| what is diff between localstatic and globalstatis variable
possible 2 use in another file...? | HCL | 2 |
| how can i get this by using for loop?
*
**
*
****
*
****** | Excel | 3 |
| What's wrong with "char *p = malloc(10);" ? | | 4 |
| how the size of an integer is decided?
- is it based on processor or compiler or OS? | nvidia | 16 |
| wite a programme in c to linear search a data using flag and
without using flags? | TCS | 3 |
| What is meant by global static? why we have to use static
variable instead of Global variable | L&T | 2 |
| write a program to sort the elements in a given array in c
language | | 2 |
| How to calculate Total working time using Login and
logout? | Wipro | 2 |
| what is mallloc()?how it works? | Excel | 3 |
| write a program to generate 1st n fibonacci prime number | | 5 |
| |
| For more C Interview Questions Click Here |