| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| If 4 digits number is input through the keyboard, Write a
program to calculate sum of its 1st & 4th digit. | | 4 |
| What are the average number of comparisons required to sort
3 elements? | | 2 |
| Define function ?Explain about arguments? | Geometric-Software | 2 |
| what's the o/p
int main(int n, char *argv[])
{
char *s= *++argv;
puts(s);
exit(0);
}
| Motorola | 1 |
| how memory store byte
| Huawei | 3 |
| what is the use of using linked list and array? | Infosys | 9 |
| what is the definition of storage classes? | Wipro | 2 |
| What is macro? | IBM | 4 |
| Write a program or provide a pseudo code to flip the 2nd bit
of the 32 bit number ! (Phone Screen) | NetApp | 1 |
| two variables are added answer is stored on not for third
variable how it is possible? | | 3 |
| write a program to find out number of on bits in a number?
| Huawei | 12 |
| how to find sum of digits in C?
| CTS | 10 |
| Difference between Class and Struct.
| Motorola | 6 |
| 5. What kind of sorting is this:
SORT (k,n)
1.[Loop on I Index]
repeat thru step2 for i=1,2,........n-1
2.[For each pass,get small value]
min=i;
repeat for j=i+1 to N do
{
if K[j]<k[min]
min=j;
}
temp=K[i];K[i]=K[min];K[min]=temp;
3.[Sorted Values will be returned]
A)Bubble Sort
B)Quick Sort
C)Selection Sort
D)Merge Sort
| Accenture | 2 |
| write a program for size of a data type without using
sizeof() operator? | | 7 |
| how to sort two array of characters and make a new array of
characters. | Accenture | 1 |
| What is a symbolic constant? | | 1 |
| Can you think of a way when a program crashed before
reaching main? If yes how? | | 2 |
| How do I access command-line arguments? | Wipro | 2 |
| Reverse a string word by word?? | | 6 |
| |
| For more C Interview Questions Click Here |