| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the differance between pass by reference and pass
by value. | Infosys | 4 |
| Explain following declaration
int *P(void);
and
int (*p)(char *a);
| | 2 |
| Who had beaten up hooligan "CHAKULI" in his early college days? | | 1 |
| Every time i run a c-code in editor,
getting some runtime error and editor is disposing,
even after reinstalling the software
what may be the problem? | | 2 |
| write the program for prime numbers? | TCS | 10 |
| Given an array of length N containing integers between 1
and N, determine if it contains any duplicates. | SilverKey | 2 |
| How can I return multiple values from a function? | | 4 |
| what is the output of the following code?
main()
{
int I;
I=0x10+010+10;
printf("x=%x",I);
}
give detailed reason | | 3 |
| What are the commands should be given before weiting C
Program i.e, Cd.. like | Infonet | 3 |
| why java is called as a purely oops language. | | 2 |
| what is the difference between entry control and exit
control statement? | | 2 |
| convert 0.9375 to binary | CTS | 1 |
| write a program that finds the factorial of a number using
recursion? | | 1 |
| 4.weight conversion:
Write a program that will read weight in pounds and convert
it into grams.print both the original weight and the
converted value.There are 454 grams in a pound.design and
carry out a test plan for this program.
| Wipro | 1 |
| Reverse the part of the number which is present from
position i to j. Print the new number.
eg:
num=789876
i=2
j=5
778986 | | 1 |
| how to make c program without a libary?
e.g.#include<stdio.h> libary is not in c progaram. | | 1 |
| which of the following statements is incorrect
a.typedef struct new{
int n1;
char n2;
} DATA;
b.typedef struct {
int n3;
char *n4;
}ICE;
c.typedef union {
int n5;
float n6;
} UDT;
d.#typedef union {
int n7;
float n8;
} TUDAT;
| TCS | 5 |
| What's the best way to declare and define global variables? | | 5 |
| if a five digit number is input through the keyboard, write
a program to calculate the sum of its digits.
(hint:-use the modulus operator.'%') | | 9 |
| Predict the output or error(s) for the following:
25. main()
{
printf("%p",main);
}
| ME | 3 |
| |
| For more C Interview Questions Click Here |