| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How do I initialize a pointer to a function? | | 2 |
| find the output of the following program
main()
{
int x=5, *p;
p=&x;
printf("%d",++*p);
}
| TCS | 4 |
| What is the difference between null pointer and void pointer | CTS | 3 |
| program for validity of triangle from 3 side | | 6 |
| How can I convert integers to binary or hexadecimal? | | 2 |
| What's the difference between struct x1 { ... }; and
typedef struct { ... } x2; ?
| | 3 |
| how to add numbers without using arithmetic operators. | TCS | 10 |
| whether itis a structured language? | Microsoft | 1 |
| How the processor registers can be used in C ? | HP | 4 |
| difference between function & structure | Verizon | 5 |
| I have an array of 100 elements. Each element contains some
text. i want to:
append a star character to the end of every fifth element
remove every second character from every tenth element,
and
add a line feed (ascii 10) after the 30th character of
every array element whose length is greater than 30
characters. | | 1 |
| What is the difference between constant pointer and pointer
to a constant. Give examples. | TCS | 4 |
| Write a program to compute the following
1!+2!+...n! | | 3 |
| write a c programs to do multiplication of two numbers with
out using arithmatic operator ?????????? | TCS | 4 |
| Is it possible to create recycle bin in mobiles? | | 2 |
| 44.what is the difference between strcpy() and memcpy()
function?
45.what is output of the following statetment?
46.Printf(%x, -1<<4); ?
47.will the program compile?
int i;
scanf(%d,i);
printf(%d,i);
48.write a string copy function routine?
49.swap two integer variables without using a third
temporary variable?
50.how do you redirect stdout value from a program to a file?
51.write a program that finds the factorial of a number
using recursion? | | 3 |
| long int size
a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes
| HCL | 11 |
| Can I pass constant values to functions which accept structure
arguments? | | 2 |
| What are the commands should be given before weiting C
Program i.e, Cd.. like | Infonet | 3 |
| What are bit fields? What is their use? | Adobe | 1 |
| |
| For more C Interview Questions Click Here |