| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| how to return 1000 variables from functio9n in c?plz give me
code also | | 5 |
| Program to display given 3 integers in ascending order | N-Tech | 1 |
| Write a program to compare two strings without using the
strcmp() function | Accenture | 14 |
| what is the use of pointers | | 5 |
| WRITE A PROGRAM TO PRINT THE FOLLOWING OUTPUTS USING FOR
LOOPS.
A) * B) *****
*** * *
***** * *
***** | | 2 |
| Write a program in c to input a 5 digit number and print it
in words. | | 1 |
| Write a routine that prints out a 2-D array in spiral order! | Lucent | 1 |
| #include<stdio.h>
main()
{
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
}
Tell me the output? | Ramco | 5 |
| 1.write a program to merge the arrays
2.write efficient code for extracting unique elements from a
sorted list of array? | Qualcomm | 2 |
| will u give me old quesrion papers for aptitude for L & t
info tech? | L&T | 1 |
| What compilation do? | Geometric-Software | 7 |
| why should i select you? | Wipro | 18 |
| What is the difference between constant pointer and pointer
to a constant. Give examples. | TCS | 4 |
| Here is alphabets : abcdefgh
1) how to reverse. as hgfedcba
2) after reversal, how to group them in a pair hg fe dc ba.
| | 2 |
| What is meaning of "Void main" in C Language. | TCS | 8 |
| 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 differnence b/w macro & functions | | 1 |
| The differences between Windows XP and Windows Visa
| HCL | 7 |
| main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
| CitiGroup | 17 |
| what does exit() do? | Cadence | 3 |
| |
| For more C Interview Questions Click Here |