| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write the program for prime numbers? | TCS | 7 |
| 11. Look at the Code:
#include<string.h>
void main()
{
char s1[]="abcd";
char s2[10];
char s3[]="efgh";
int i;
clrscr();
i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd"));
printf("%d",i);
}
What will be the output?
A)No output B) A Non Integer C)0 D) Garbage
| Accenture | 5 |
| what is the output of below pgm?
void main()
{
int i=0;
if(i)
printf("pass");
else
printf("fail");
} | | 2 |
| 6. Which of the Following is not defined in string.h?
A)strspn()
B)strerror()
C)memchr()
D)strod()
| Accenture | 1 |
| define function | Assurgent | 4 |
| What are the preprocessors? | HP | 3 |
| O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N | ADP | 7 |
| difference between semaphores and mutex? | | 1 |
| True or false: If you continuously increment a variable, it
will become negative?
1) True
2) False
3) It depends on the variable type
| | 4 |
| int *a[5] refers to | TCS | 7 |
| how many error occurs in C language ? | Wipro | 9 |
| What is false about the following
A compound statement is
a.A set of simple statments
b.Demarcated on either side by curly brackets
c.Can be used in place of simple statement
d.A C function is not a compound statement.
| TCS | 1 |
| what are the static variables
| HCL | 7 |
| who is the founder of c | HP | 7 |
| write a program to search for an element in a given array.
If the array was found then display its position otherwise
display appropriate message in c language | | 1 |
| what is the use of #pragma pack, wer it is used? | | 1 |
| How can I call a function, given its name as a string? | ABC-Telecom | 1 |
| what is the function of .h in #include<stdio.h> in c ? | IBM | 4 |
| WRITE A PROGRAM TO FIND A REVERSE OF TWO NO | | 5 |
| Difference between fopen() and open()? | Aricent | 1 |
| |
| For more C Interview Questions Click Here |