| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Can u return two values using return keyword? If yes, how?
If no, why? | | 7 |
| number 2 plssssss help !!....using array.. turbo c..
create a program that will accept a number and determine if
it is a happy number or an unhappy number..
example:
enter a number : 7
7*7=49
then 4 and 9
4*4 and 9*9== 16 + 18 gives you 97
then 9 and 7
9*9 and 7*7 == 81 + 49 gives you 130
then 1 and 3
1*1 and 3*3 == 1 + 9 gives you 10
1*1 gives you 1
sample output:
7= 49= 16+81= 97= 81+49=130 =1+9=10 =1
"7 is a happy number"
. if the last number is 2 then the number being inputed is
not a happy number.
| | 2 |
| plz answer..... a program that reads non-negative integer
and computes and prints its factorial | | 2 |
| what is the associativity of bitwise OR operator? | | 1 |
| what are the static variables
| HCL | 7 |
| how to find out the union of two character arrays? | | 1 |
| What are .h files and what should I put in them? | | 3 |
| WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE? | IBM | 5 |
| Difference between null pointer and dangling pointer? | Wipro | 3 |
| without using arithmatic operator convert an intger variable
x into x+1 | | 1 |
| dennis ritchie invented C language in AT&T bell laboratory
what is the extension of AT&T? | | 1 |
| 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 |
| what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
} | Infosys | 14 |
| disadvantages of realloc ? | HCL | 1 |
| You are given a string which contains some special
characters. You also have set of special characters. You are
given other string (call it as pattern string). Your job is
to write a program to replace each special characters in
given string by pattern string. You are not allowed to
create new resulting string. You need to allocate some new
memory to given existing string but constraint is you can
only allocate memory one time. Allocate memory exactly what
you need not more not less. | Microsoft | 2 |
| 1,4,8,13,21,30,36,45,54,63,73,?,?. | Franklin-Templeton | 5 |
| can i know the source code for reversing a linked list with
out using a temporary variable?
| Honeywell | 6 |
| How to set a variable in the environment list? | | 1 |
| which type of question asked from c / c++ in interview. | | 2 |
| Write a programme to find even numbers without using any
conditional statement? | Infosys | 3 |
| |
| For more C Interview Questions Click Here |