| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| program to find the ASCII value of a number | | 5 |
| Write a program for deleting duplicate elements in an array | Subex | 3 |
| char S;
char S[6]= " HELLO";
printf("%s ",S[6]);
output of the above program ?
(0, ASCII 0, I,unpredictable)
| Mascot | 6 |
| main()
{char a[10]={1,2,3,4,5,6};int x;
for(x=0;x<4;x++){ b[x]=x+'a';}
printf("%s",b);}
| | 3 |
| What is C language Terminator? | TCS | 12 |
| how to copy a string without using c function | | 5 |
| What character terminates all strings composed of character
arrays?
1) 0
2) .
3) END
| | 3 |
| Struct(s)
{
int a;
long b;
}
Union (u)
{int a;
long b;
}
Print sizeof(s)and sizeof(u) if sizeof(int)=4 and
sizeof(long)=4
| Mascot | 2 |
| what are the interview question's in the language c | Nipuna | 1 |
| explain memory layout of a C program | | 1 |
| WAP to accept basic salary of an employee?
Calculate it HRA=25%,DA=30%,PF=30%&net salary display all
contents? | | 5 |
| int i;
i=2;
i++;
if(i=4)
{
printf(i=4);
}
else
{
printf(i=3);
}
output of the program ?
| Mascot | 9 |
| Write a program for the following series?
1
121
12321
1234321
123454321
12345654321
1234567654321
123456787654321
12345678987654321
1234567890987654321
123456789010987654321
12345678901210987654321
1234567890123210987654321
.........1234321............
..........123454321............
..........12345654321............
7
8
9
0
1
Pls............? | | 2 |
| what is object oriental programing? | | 1 |
| 4.A function 'q' that accepts a pointer to a character as
argument and returns a pointer to an array of integer can
be declared as:
A)int (*q(char*)) []
B)int *q(char*) []
C)int(*q)(char*) []
D)None of the Above
| Accenture | 4 |
| what is a c-language.what is do. | HCL | 3 |
| What is the Difference between Macro and ordinary
definition? | Motorola | 2 |
| Which is not valid in C?
1) class aClass{public:int x;}
2) /* A comment */
3) char x=12;
| | 5 |
| #include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
Find the output | CitiGroup | 4 |
| What is the memory allocated by the following definition ?
int (*x)(); | ADITI | 2 |
| |
| For more C Interview Questions Click Here |