| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is pointer | TCS | 1 |
| What does a run-time "null pointer assignment" error mean? | | 2 |
| 6. Which of the Following is not defined in string.h?
A)strspn()
B)strerror()
C)memchr()
D)strod()
| Accenture | 1 |
| WHY DO WE USE A TERMINATOR IN C LANGUAGE? | | 2 |
| 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? | | 5 |
| what is the difference between strcpy() and memcpy() function? | | 1 |
| what is volatile in c language? | TCS | 1 |
| Which of the following is not a valid declaration for main
()?
1) int main()
2) int main(int argc, char *argv[])
3) They both work
| | 2 |
| main is a predefined or user define function
if user defined why?
if predefined whay? | TCS | 2 |
| 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 is disadvantage of pointer in C | Tech-Mahindra | 5 |
| what is array? | | 6 |
| Write a program in c to input a 5 digit number and print it
in words. | | 1 |
| Can u return two values using return keyword? If yes, how?
If no, why? | | 7 |
| write a string copy function routine? | | 1 |
| void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}
in this code always gives the same result for all case | TCS | 7 |
| how to return 1000 variables from functio9n in c?plz give me
code also | | 5 |
| 15.what is the disadvantage of using macros?
16.what is the self-referential structure?
17.can a union be self-referenced?
18.What is a pointer?
19.What is the Lvalue and Rvalue?
20.what is the difference between these initializations?
21.Char a[]=”string”;
22.Char *p=”literal”;
23.Does *p++ increment p, or what it points to? | CTS | 2 |
| two variables are added answer is stored on not for third
variable how it is possible? | | 3 |
| write a fuction for accepting and replacing lowercase
letter to'Z' with out using inline function. | Temenos | 4 |
| |
| For more C Interview Questions Click Here |