| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a program to print the all 4digits numbers & whose
squares must me even numbers? | Virtusa | 1 |
| Hi,
main()
{
}
Is a user defined function or Built in Functionn | Honeywell | 5 |
| implement general tree using link list | Wipro | 1 |
| write a program for odd numbers? | | 5 |
| write a program to find the number of even integers and odd
integers in a given array in c language | Olive-Tech | 2 |
| how to return 1000 variables from functio9n in c?plz give me
code also | | 3 |
| write a c programs to do multiplication of two numbers with
out using arithmatic operator ?????????? | TCS | 2 |
| WRITE A PROGRAM TO FIND A REVERSE OF TWO NO | | 5 |
| main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
| CitiGroup | 13 |
| difference between semaphores and mutex? | | 1 |
| write a program to find out number of on bits in a number?
| Huawei | 11 |
| 12. Look at the Code:
main()
{
int a[]={1,2,3},i;
for(i=0;i<3;i++)
{
printf("%d",*a);
a++;
}
}
Which Statement is/are True w.r.t the above code?
I.Executes Successfully & Prints the contents of the array
II.Gives the Error:Lvalue Required
III.The address of the array should not be changed
IV.None of the Above.
A)Only I B)Only II C)II & III D)IV
| Accenture | 4 |
| What is the difference b/w main() in C language and main()
in C++. | | 3 |
| How to use c/c++ code in JAVA | Satyam | 4 |
| 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 | 3 |
| How do I initialize a pointer to a function? | | 2 |
| why you will give me a job in TCS. | TCS | 5 |
| What is Heap? | | 3 |
| Write one statement equalent to the following two statements
x=sqr(a);
return(x);
Choose from one of the alternatives
a.return(sqr(a));
b.printf("sqr(a)");
c.return(a*a*a);
d.printf("%d",sqr(a));
| TCS | 4 |
| int *p=20;
if u print like dis printf("%d",p);
o\p:- 20; how is it possible?
plz give me the explanation. | Global-Edge | 5 |
| |
| For more C Interview Questions Click Here |