| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| how can i make a program with this kind of output..
Enter a number: 5
0
01
012
0123
01234
012345
01234
0123
012
01
0 | Wipro | 3 |
| void main()
{
char far *farther,*farthest;
printf("%d..%d",sizeof(farther),sizeof(farthest));
}
| ME | 3 |
| How to avoid structure padding in C? | Tech-Mahindra | 4 |
| Why doesn't C have nested functions? | | 2 |
| What is a far pointer?What is the utility? | | 2 |
| program to find middle element of linklist? | Huawei | 1 |
| I have an array of 100 elements, each of which is a random
integer. I want to know which of the elements:
a) are multiples of 2
b) are multiples of 2 AND 5
c) have a remainder of 3 when divided by 7 | | 1 |
| How many types of linked lists what are they?
How many types of data structures? | BSNL | 5 |
| What are the phases in s/w developed life cycle?
wat is the diff b/w stack & queue...where do we use stack | | 5 |
| C program to find frequency of each character in a text
file? | | 3 |
| palindrome for strings and numbers----Can anybody do the
prog? | TCS | 6 |
| difference between my-strcpy and strcpy ? | Geometric-Software | 3 |
| what is meant by the "equivalence of pointers and arrays" in
C? | Satyam | 3 |
| what is the value of 'i'?
i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
| Cadence | 4 |
| How to find the given no is odd or even without checking of
any condition and loops. (Hint: Using array) | | 4 |
| What's the best way to declare and define global variables? | | 5 |
| what is dangling pointer? | LG-Soft | 1 |
| write a program to insert an element at the specified
position in the given array in c language | IBM | 2 |
| 2.Given the short c program that follows
a. make a list of the memory variables in this program
b.which lines of code contain operations that change the
contents of memory? what are those operations?
Void main( void)
{
Double base;
Double height;
Double area;
Printf(“enter base and height of triangle :”);
Scanf(“%lg”, &base);
Scanf(“%lg”, &height);
Area=base*height/2.0;
Printf(“the area of the triangle is %g \n”,area);
}
| Wipro | 1 |
| logic for generating all the combinations of the any number
of given letters.
ex:::::::::
if a,b,c,d are given the o/p should be
abcd,dcba,dbac,bcad,................
4*3*2*1 combinations............ | Infosys | 2 |
| |
| For more C Interview Questions Click Here |