| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| C,c++, Java is all are structural oriented or procedure
oriented language..? | | 3 |
| Write a c code segment using a for loop that calculates and
prints the sum of the even integers from 2 to 30, inclusive? | | 2 |
| what is the value of 'i'?
i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
| Cadence | 4 |
| value = 0xabcd;
for (loop = 1; (value >> 1) & 1 | loop & 1; loop++) {
foo();
if (loop & 1)
value >>= 1;
}
how many times is foo() executed? | Google | 5 |
| a=0;
while(a<5)
printf("%d\n",a++);
how many times does the loop occurs?
a.infinite
b.5
c.4
d.6
| TCS | 5 |
| What is the difference between null pointer and the void
pointer? | | 2 |
| What do you mean by team?? | | 2 |
| why java is called as a purely oops language. | | 2 |
| 44.what is the difference between strcpy() and memcpy()
function?
45.what is output of the following statetment?
46.Printf(“%x”, -1<<4); ?
47.will the program compile?
int i;
scanf(“%d”,i);
printf(“%d”,i);
48.write a string copy function routine?
49.swap two integer variables without using a third
temporary variable?
50.how do you redirect stdout value from a program to a file?
51.write a program that finds the factorial of a number
using recursion? | | 3 |
| Write a function that accepts two numbers,say a and b and
makes bth bit of a to 0.No other bits of a should get
changed. | Scientific-Atlanta | 2 |
| what are the languages used in c#? | Infosys | 1 |
| main()
{
int arr[5]={23,67};
printf("%d%d%d",arr[2],arr[3],arr[4]);
} | TCS | 6 |
| Write a C Programm..
we press 'a' , it shows the albhabetical number is 1, if we
press 'g' it shows the answer 7.. any can help me | | 4 |
| plz answer..... a program that reads non-negative integer
and computes and prints its factorial | | 2 |
| Write code for atoi(x) where x is hexadecimal string. | Adobe | 2 |
| differentiate between
const char *a;
char *const a; and
char const *a;
| HCL | 1 |
| void main()
{
int i=5;
printf("%d",i++ + ++i);
} | ME | 11 |
| main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how? | | 7 |
| how to find the size of the data type like int,float
without using the sizeof operator? | | 7 |
| DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? | Wipro | 2 |
| |
| For more C Interview Questions Click Here |