| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 4.weight conversion:
Write a program that will read weight in pounds and convert
it into grams.print both the original weight and the
converted value.There are 454 grams in a pound.design and
carry out a test plan for this program.
| Wipro | 1 |
| code snippet for creating a pyramids triangle
ex
1
2 2
3 3 3 | | 3 |
| c program to add and delete an element from circular queue
using array | | 1 |
| main()
{char a[10]={1,2,3,4,5,6};int x;
for(x=0;x<4;x++){ b[x]=x+'a';}
printf("%s",b);}
| | 3 |
| I have an array of 100 elements. Each element contains some
text. i want to:
append a star character to the end of every fifth element
remove every second character from every tenth element,
and…
add a line feed (ascii 10) after the 30th character of
every array element whose length is greater than 30
characters. | | 1 |
| #include <stdio.h>
int main ( int argc, char* argv [ ] )
{
int value1 = 10;
int value2 = 5;
printf ( "\n The sum is :%d", value1 | value2 );
}
This is the answer asked by some one to add two numbers
with out using arithmetic operator?Yes this answer is write
it given out put as 15.But how?????
what is need of following line?
int main ( int argc, char* argv [ ] )
how it work?what is the meaning for this line?
please explain me.Advance thanks | Excel | 4 |
| There are 3 baskets of fruits with worng lables,one basket
has apple,another basket has orange,another has combination
of apple and orange,what is the least way of interchange
the lables. | Google | 10 |
| dibakar & vekatesh..uttejana here..abt ur reply for in
place reversal of linked list..wats p stands for there? | | 1 |
| What is volatile in c language? | HCL | 1 |
| struct ptr
{
int a;
char b;
int *p;
}abc;
what is d sizeof structure without using "sizeof" operator?? | Verifone | 8 |
| 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 |
| What is the value of y in the following code?
x=7;y=0;
if(x=6)
y=7;
else
y=1;
| TCS | 10 |
| How to add two numbers without using arithmetic operators? | Sapient | 11 |
| How to receive strings with spaces in scanf() | | 4 |
| what is the difference b/w compiler and debugger? | Assurgent | 1 |
| How would you write qsort? | | 1 |
| While(1)
{
}
when this loop get terminate is it a infinite loop? | | 4 |
| how to generate the length of a string without using len
funtion? | | 3 |
| How can I make a program in c to print 'Hello' without
using semicolon in the code? | C-DAC | 5 |
| to find out the reverse digit of a given number | Infosys | 5 |
| |
| For more C Interview Questions Click Here |