what are the interview question's in the language c
Answers were Sorted based on User's Feedback
Interview questions in C would be :
- what are pointers?
- what do the .h files mean?
my fav ques - which i will always ask is :
** what is the differance between a[0] and *a.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / mallik
a[0] represents only that value at 0 location,but *a
represents the address of that variable stored
| Is This Answer Correct ? | 0 Yes | 0 No |
What should be keep precautions while using the recursion method?
Are the outer parentheses in return statements really optional?
Program to trim a given character from a string.
f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c?
How can I access an I o board directly?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What is difference between scanf and gets?
main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); }
2 Answers Vector, Vector India,
2. Write a function called hms_to_secs() that takes three int values—for hours, minutes, and seconds—as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.
Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference