| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write the program for prime numbers? | TCS | 10 |
| Find Index of least significant bit set in an Integer. ex.
int value is say 10001000 results should be 4. | | 1 |
| what does data structure mean? | | 7 |
| what is the output of the following program?
main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
} | | 7 |
| which one low Priority in c?
a)=,b)++,c)==,d)+ | | 8 |
| write a programme that inputs a number by user and gives
its multiplication table. | | 2 |
| what is the output of following question?
void main()
{
int i=0,a[3];
a[i]=i++;
printf("%d",a[i]
} | | 2 |
| c programming of binary addition of two binary numbers
| | 1 |
| #define f(x)
main()
{
printf("\n%d",f(2+2));
} | | 3 |
| void main()
{int a[5],i,b=16;
for(i=0;i<5;i++)
a[i]=2*i;
f(a,5,b);
for(i=0;i<5;i++)
printf("\n %d",a[i]);
printf("\n %d",b);
}
f(int *x,int n,int y)
{
int i;
for(i=0;i<n;i++)
*(x+i)+=2;
y=y+2;
}wat r the errors in the prg.and improvise the prg to get o/p.? | | 2 |
| 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 |
| which header file contains main() function in c? | TCS | 3 |
| Is the following code legal?
struct a
{
int x;
struct a b;
}
| | 3 |
| what is the code for getting the output as
*
**
*** | Caritor | 5 |
| what is the difference between arrays and linked list | Tech-Mahindra | 15 |
| Every time i run a c-code in editor,
getting some runtime error and editor is disposing,
even after reinstalling the software
what may be the problem? | | 2 |
| differentiate between
const char *a;
char *const a; and
char const *a;
| HCL | 1 |
| how to do in place reversal of a linked list(singly or
doubly)? | | 2 |
| write a program that print itself even if the source file is
deleted? | | 1 |
| Is there any restriction in how many arguments printf or
scanf function can take?
in which file in my c++ compiler i can see the code for
implementation of these two functions?? | | 3 |
| |
| For more C Interview Questions Click Here |