| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND
CORRESPONDING VALUE FROM ASCII TABLE | | 1 |
| how to find turn around time in operating system? | | 1 |
| main()
{int a=200*200/100;
printf("%d",a);
} | TCS | 7 |
| biggest of two no's with out using if condition statement | | 2 |
| WAP to accept first name,middle name & last name of a
student display its initials? | NIIT | 2 |
| 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 |
| code for copying two strings with out strcpy() function. | | 5 |
| how can we use static and extern?and where can we use this? | Excel | 3 |
| difference between i++* and *++i | IBM | 3 |
| How do I initialize a pointer to a function? | | 2 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 8 |
| enum colors {BLACK,BLUE,GREEN}
main()
{
printf("%d..%d..%d",BLACK,BLUE,GREEN);
return(1);
}
| ME | 3 |
| what is available in C language but not in C++? | | 1 |
| 1. Write the function int countchtr(char string[ ], int ch);
which returns the number of times the character ch appears
in the string.
Example, the call countchtr(“She lives in NEWYORK”, ‘e’)
would return 3.
| | 2 |
| how to generate sparse matrix in c | | 1 |
| 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 difference between entry control and exit
control statement? | | 2 |
| write a program to swap Two numbers without using temp variable. | HP | 22 |
| Total of how many functions are available in c? | | 2 |
| int main()
{
int *p=new int;
*p=10;
del p;
cout<<*p;
*p= 60;
cout<<*p;
}
what will be the output & why? | TCS | 4 |
| |
| For more C Interview Questions Click Here |