| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a c program to check weather a particluar bit is set
or not? | IBM | 4 |
| what is the benefit of c30 | | 1 |
| How does C++ help with the tradeoff of safety vs. usability?
| | 1 |
| if array a conatins 'n' elements and array b conatins 'n-1'
elements.array b has all element which are present in array
a but one element is missing in array b. find that
element. | Zycus-Infotech | 9 |
| how can i get this by using for loop?
*
**
*
****
*
****** | Excel | 3 |
| what is the advantage of function pointer | TCS | 9 |
| how memory store byte
| Huawei | 3 |
| the factorial of non-negative integer n is written n! and
is defined as follows:
n!=n*(n-1)*(n-2)........1(for values of n greater than or
equal to 1 and
n!=1(for n=0)
Perform the following
1.write a c program that reads a non-negative integer and
computes and prints its factorial.
2. write a C program that estimates the value of the
mathematical constant e by using the formula:
e=1+1/!+1/2!+1/3!+....
3. write a c program the computes the value ex by using the
formula
ex=1+x/1!+xsquare/2!+xcube/3!+....
| Ignou | 2 |
| #include<stdio.h>
main()
{
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
}
Tell me the output? | Ramco | 5 |
| related to rdbms query . | | 1 |
| differentiate between
const char *a;
char *const a; and
char const *a;
| HCL | 1 |
| what is calloc and malloc? | | 1 |
| How can I make a program in c to print 'Hello' without
using semicolon in the code? | C-DAC | 5 |
| write a C program to print the program itself ?! | TCS | 11 |
| Read N characters in to an array . Use functions to do all
problems and pass the address of array to function.
1. Print only the alphabets . If in upper case print in
lower case vice versa. | | 1 |
| without using arithmatic operator convert an intger variable
x into x+1 | | 1 |
| study the code:
#include<stdio.h>
void main()
{
const int a=100;
int *p;
p=&a;
(*p)++;
printf("a=%dn(*p)=%dn",a,*p);
}
What is printed?
A)100,101 B)100,100 C)101,101 D)None of the
above | Accenture | 13 |
| how to do in place reversal of a linked list(singly or
doubly)? | | 2 |
| What is macro? | IBM | 4 |
| Software Interview Questions | CAT | 1 |
| |
| For more C Interview Questions Click Here |