| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is array? | HCL | 22 |
| i want explaination about the program and its stack reprasetaion
fibbo(int n)
{
if(n==1 or n==0)
return n;
else
return fibbo(n-1)+fibbo(n-2);
}
main()
{
fibbo(6);
}
| | 2 |
| How to write a program for swapping two strings without
using 3rd variable and without using string functions. | iGate | 5 |
| CopyBits(x,p,n,y)
copy n LSBs from y to x starting LSB at 'p'th position. | Adobe | 4 |
| plssssss help !!....using array.. turbo c..
create a program that will accept number of words to be
consored.
.a word must not exceed 10 characters long
.the text to be entered will be no longer than 200 characters
.there will be no 10 words
example:
enter number of words to be censor: 5
enter words to censor:
windows
office
microsoft
bill
gates
enter text to censor:
bill gates founded microsoft and makes office and windows
sample output:
<consored> <censored> founded <censored> and makes
<censored> and <censored> | | 1 |
| Who is invented by c? | Infosys | 14 |
| differentiate between
const char *a;
char *const a; and
char const *a;
| HCL | 1 |
| What is the memory allocated by the following definition ?
int (*x)(); | ADITI | 2 |
| how to print "hai" in c? | | 10 |
| what is the return value (status code) of exit() function....
what the arguments(integer value) passed to it means.... | TCS | 1 |
| main()
{
int arr[5]={23,67};
printf("%d%d%d",arr[2],arr[3],arr[4]);
} | TCS | 6 |
| What character terminates all strings composed of character
arrays?
1) 0
2) .
3) END
| | 3 |
| write the function int countchtr(char string[],int
ch);which returns the number of timesthe character ch
appears in the string. for example the call countchtr("she
lives in Newyork",'e') would return 3. | | 4 |
| How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST | Adobe | 2 |
| int *a[5] refers to | TCS | 8 |
| If we give two names then this displays the connection
between the two people. It is nothing but flames game | | 1 |
| what will happen if you free a pointer twice after
allocating memory dynamically ? | Novell | 2 |
| N O S I E R
+ A S T R A L
----------------
7 2 5 6 1 3 | Honeywell | 2 |
| write a program to find the sum of the array elements in c
language? | | 8 |
| what are the difference between ANSI C and Let Us c and Turbo C | LG-Soft | 1 |
| |
| For more C Interview Questions Click Here |