| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| the number 138 is called well ordered number because the
three digits in the number (1,3,8) increase from left to right
(1<3<8). the number 365 is not well ordered coz 6 is larger
than 5.
write a program that wull find and display all possible
three digit well ordered numbers.
sample:
123,124,125,126,127,128,129,134
,135,136,137,138,139,145,146,147
148
149,156.......789 | | 3 |
| where does malloc() function get the memory? | | 1 |
| How can I read a directory in a C program? | Wipro | 1 |
| Is the following code legal?
struct a
{
int x;
struct a b;
}
| | 3 |
| what is the stackpointer | | 2 |
| Convert the following expression to postfix and prefix
(A+B) * (D-C) | Satyam | 2 |
| HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I
NEED AN ANSWER THAT IMPRESS THE INTERVIEWER | | 2 |
| what about "char *(*(*a[])())();"
| Oracle | 2 |
| Write a program to accept a character & display its
corrosponding ASCII value & vice versa? | | 4 |
| What is the output of the program given below
#include<stdio.h>
main()
{
char i=0;
for(;i>=0;i++) ;
printf("%d\n",i);
} | ADITI | 14 |
| #include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
Find the output | CitiGroup | 4 |
| what is the use of #pragma pack, wer it is used? | Wipro | 1 |
| please give me some tips for the selection in TCS. | TCS | 3 |
| main()
{
clrscr();
}
clrscr();
| ME | 3 |
| 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? | L&T | 4 |
| main()
{int a=200*200/100;
printf("%d",a);
} | TCS | 7 |
| find second largest element in array w/o using sorting
techniques? use onle one for loop. | Zycus-Infotech | 2 |
| how to find the binary of a number? | Infosys | 5 |
| WAP to accept rollno,course name & marks of a student &
display grade if total marks is above 200? | | 2 |
| HOW TO FIND OUT THE RREVERS OF A GIVEN DIGIT NUMBER IF IT
IS INPUT THROUGH THE KEYBORD BY USING C LANGUAGE | | 2 |
| |
| For more C Interview Questions Click Here |