| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| WAP to accept rollno,course name & marks of a student &
display grade if total marks is above 200? | | 2 |
| study the code:
#include<stdio.h>
void main()
{
const int a=100;
int *p;
p=&a;
(*p)++;
printf("a=%dn(*p)=%dn",a,*p);
}
What is printed?
A)100,101 B)100,100 C)101,101 D)None of the
above | Accenture | 13 |
| User define function contain thier own address or not. | | 2 |
| what is diff between localstatic and globalstatis variable
possible 2 use in another file...? | HCL | 2 |
| What is encapsulation? | | 1 |
| why the execution starts from main function | | 9 |
| what is the use of a array in c | | 4 |
| Can we write a program without main() function? | | 9 |
| How do you write a program which produces its own source
code as its output? | | 3 |
| what are brk, sbrk?
| Oracle | 1 |
| Consider a language that does not have arrays but does have
stacks as a data type.and PUSH POP..are all defined .Show
how a one dimensional array can be implemented by using two
stacks. | Google | 3 |
| 52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2? | | 5 |
| #include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
| ME | 5 |
| What is the diffences between Windows XP and Windows Visa
| Aricent | 1 |
| Why preprocessor should come before source code?
| | 2 |
| what is the value of 'i'?
i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
| Cadence | 4 |
| how to copy a string without using c function | | 5 |
| Dear Sir,
we are required the bubble sorting programs
Regs
Prem | | 1 |
| helllo sir ,
what is the main use of the pointer ,array ,and the
structure with the example of a programe | | 2 |
| write a program to swap Two numbers without using temp variable. | HP | 22 |
| |
| For more C Interview Questions Click Here |