| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Write a Program to print this triangle:
*
**
*
****
*
******
*
********
*
**********
use two nested loops. | TCS | 5 |
| Which of the following about the C comments is incorrect ?
a.commentscan go over multiple lines
b.comments can start any where in the line
c.a line can contain comments with out any language statements
d.comments can occur within comments
| TCS | 6 |
| What are Storage Classes in C ? | HP | 15 |
| How can I allocate arrays or structures bigger than 64K? | | 4 |
| Who had beaten up hooligan "CHAKULI" in his early college days? | | 1 |
| without using arithmatic operator convert an intger variable
x into x+1 | | 1 |
| Reverse the part of the number which is present from
position i to j. Print the new number.[without using the array]
eg:
num=789876
i=2
j=5
778986 | | 2 |
| Write a program to exchange two variaables without temp | Geometric-Software | 6 |
| what is the output of the following program?
#include<stdio.h>
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("\n%d %d %d",x,y,z);
} | | 10 |
| difference between semaphores and mutex? | | 1 |
| Convert the following expression to postfix and prefix
(A+B) * (D-C) | Satyam | 2 |
| wats the diference btwen constant pointer and pointer to a
constant.pls give examples. | | 6 |
| Can we write a program without main() function? | | 9 |
| what is the difference between #include<stdio.h> and
#include"stdio.h" ? | TCS | 5 |
| 5. What kind of sorting is this:
SORT (k,n)
1.[Loop on I Index]
repeat thru step2 for i=1,2,........n-1
2.[For each pass,get small value]
min=i;
repeat for j=i+1 to N do
{
if K[j]<k[min]
min=j;
}
temp=K[i];K[i]=K[min];K[min]=temp;
3.[Sorted Values will be returned]
A)Bubble Sort
B)Quick Sort
C)Selection Sort
D)Merge Sort
| Accenture | 2 |
| Describe advantages and disadvantages of the various stock
sorting algorithms | Microsoft | 1 |
| How to access or modify the const variable in c ? | HP | 4 |
| what is Structural oriented language?
give some example of this language.....? | | 1 |
| How do you write a program which produces its own source
code as its output? | | 2 |
| #include <stdio.h>
#define sqr(x) (x*x)
int main()
{
int x=2;
printf("value of x=%d",sqr(x+1));
}
What is the value of x?
| Oracle | 13 |
| |
| For more C Interview Questions Click Here |