| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| two progs are given. one starts counting frm 0 to MAX and
the other stars frm MAX to 0. which one executes fast.
| Verifone | 5 |
| Write a function that accepts two numbers,say a and b and
makes bth bit of a to 0.No other bits of a should get
changed. | Scientific-Atlanta | 2 |
| Find string palindrome 10marks
| Honeywell | 5 |
| Write a program to compare two strings without using the
strcmp() function | Accenture | 14 |
| main()
{
int i=400,j=300;
printf("%d..%d");
}
| ME | 8 |
| write a 'c' program to sum the number of integer values | | 5 |
| 1. Write a c pgm to print 1 to 100 without using loops.
2. Write a c pgm for leap year
3. Write a c pgm fibbonacci series,factorial
4. Write a c pgm count no of lines , blanks, tabs in a
para(File concept)
5. Write a c pgm to print the letter as per given condition
i.e.. if u give 4
out put should b
4 4 4 4
4 4 4 4
4 4 4 4
4 4 4 4
6.how do get the o/p in number from 1 to 100 in the screen
without using control statement?
7. who do u print the word "hello world" without using
"printf" statement?
8. write sql program to get the detail of student in a
class?
Definitions:
structure
union
arrays
linkedlist
macros
directives
difference b/w
pre processorsDiffrence:
1.Constructors and destructors
2.Structure and Union
3.Array and Lists
4.pre processor...
5. Privillages in C++
6.structure and union
7.break and continue
8.while and dowhile Pgm.. | | 1 |
| To find whether a number is even or odd without using any
conditional operator?? | IBM | 4 |
| 2. What is the function of ceil(X) defined in math.h do?
A)It returns the value rounded down to the next lower
integer
B)it returns the value rounded up to the next higher integer
C)the Next Higher Value
D)the next lower value
| Accenture | 2 |
| WAP to accept first name,middle name & last name of a
student display its initials? | NIIT | 2 |
| what is the benefit of c30 | | 1 |
| plz answer.... write a program that reads line (using
getline) e.g."345", converts each line to an integer
using "atoi" and computes the average of all the numbers
read. also compute the standard deviation. | | 1 |
| What's wrong with "char *p = malloc(10);" ? | | 4 |
| What is the main differences between C and Embedded C? | | 2 |
| 9.how do you write a function that takes a variable number
of arguments? What is the prototype of printf () function?
10.How do you access command-line arguments?
11.what does ‘#include<stdio.h>’ mean?
12.what is the difference between #include<> and #include”…”?
13.what are # pragma staments?
14.what is the most appropriate way to write a
multi-statement macro? | | 1 |
| What are Storage Classes in C ? | HP | 15 |
| what is difference between array and structure?
| TCS | 19 |
| what is the difference between declaration and definition
of a variable or function ? | | 2 |
| Consider a language that does not have arrays but does have
stacks as a data type.and PUSH POP..are all defined .Show
how a one dimensional array can be implemented by using two
stacks. | Google | 3 |
| How to receive strings with spaces in scanf() | | 4 |
| |
| For more C Interview Questions Click Here |