| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Program to find the absolute value of given integer using
Conditional Operators | N-Tech | 2 |
| let's take a code
struct FAQ
{
int a;
char b;
float c;
double d;
int a[10];
}*temp;
now explain me how the memory will be allocated for the
structure FAQ and what address will be in the structure
pointer (temp).................... | | 7 |
| Which of the following about automatic variables within a
function is correct ?
a.its type must be declared before using the variable
b.they are local
c.they are not initialised to zero
d.they are global.
| TCS | 3 |
| i=20,k=0;
for(j=1;j<i;j=1+4*(i/j))
{
k+=j<10?4:3;
}
printf("%d", k);
| HCL | 6 |
| How would you write qsort? | | 1 |
| How can I call a function, given its name as a string? | ABC-Telecom | 2 |
| main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how? | | 7 |
| parkside's triangle..
create a program like this..
enter the size: 6
enter the seed: 1
output:
1
23
456
7891
23456
789123
sample2:
enter the size: 5
enter the seed: 3
output:
3
45
678
9123
45678
parkside should not exceed 10 while its seed should only be
not more than 9.. | | 4 |
| What is encapsulation? | | 1 |
| C passes By value or By reference? | Geometric-Software | 5 |
| write a programe returns the number of times the character
appears in the string | | 1 |
| What is the real difference between arrays and pointers? | | 11 |
| what is the code for getting the output as
*
**
*** | Caritor | 5 |
| Write a program to find the given number is odd or even
without using any loops(if,for,do,while) | | 2 |
| The C language terminator is
a.semicolon
b.colon
c.period
d.exclamation mark
| TCS | 3 |
| What is a class? | | 2 |
| What is RAM memory? and What is ROM?Who designed one is
temparary and another is permanent?why they designed like
that?By using far pointer which type data(whether
hexadecimal)we can access? | Excel | 1 |
| #include <stdio.h>
int main ( int argc, char* argv [ ] )
{
int value1 = 10;
int value2 = 5;
printf ( "\n The sum is :%d", value1 | value2 );
}
This is the answer asked by some one to add two numbers
with out using arithmetic operator?Yes this answer is write
it given out put as 15.But how?????
what is need of following line?
int main ( int argc, char* argv [ ] )
how it work?what is the meaning for this line?
please explain me.Advance thanks | Excel | 4 |
| what is the advantage of using SEMAPHORES to ORDINARY
VARIABLES??? | NSN | 1 |
| is compiler do read the data line by line or not.
?? | LG-Soft | 3 |
| |
| For more C Interview Questions Click Here |