| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 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 | 3 |
| what is difference between overriding and overloading? | | 1 |
| write a function which accept two numbers from main() and
interchange them using pointers? | | 3 |
| what is the use of pointers | | 5 |
| What compilation do? | Geometric-Software | 7 |
| what is the differance between pass by reference and pass
by value. | Infosys | 4 |
| how many header file is in C language ? | | 13 |
| write a program for size of a data type without using
sizeof() operator? | | 7 |
| What are data breakpoints? | Adobe | 1 |
| Reverse the part of the number which is present from
position i to j. Print the new number.[without using the array]
eg:
num=789876
i=2
j=5
778986 | | 2 |
| Which of the Following is not defined in string.h?
A)strspn()
B)strerror()
C)memchr()
D)strod()
| Accenture | 1 |
| what is op?
for(c=0;c=1000;c++)
printf("%c",c); | Trigent | 18 |
| What are the uses of pre-processor directives? | | 2 |
| write a program to display the array elements in reverse
order in c language | | 6 |
| program to get the remainder and quotant of given two
numbers with out using % and / operators? | IBM | 8 |
| which of the following go out of the loopo if expn 2
becoming false
a.while(expn 1){...if(expn 2)continue;}
b.while(!expn 1){if(expn 2)continue;...}
c.do{..if(expn 1)continue;..}while(expn 2);
d.while(!expn 2){if(expn 1)continue;..}
| TCS | 2 |
| how to impliment 2 or more stacks in a single dimensional
array ? | iFlex | 1 |
| write a program to find the sum of the array elements in c
language? | | 8 |
| regarding the scope of the varibles;identify the incorrect
statement:
a.automatic variables are automatically initialised to 0
b.static variables are are automatically initialised to 0
c.the address of a register variable is not accessiable
d.static variables cannot be initialised with any expression
| TCS | 1 |
| implement general tree using link list | Wipro | 1 |
| |
| For more C Interview Questions Click Here |