| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what are far pointers? | | 1 |
| What is the purpose of Scanf Print, getchar, putchar,
function? | | 3 |
| Would you rather wait for the results of a quicksort, a
linear search, or a bubble sort on a 200000 element array?
1) Quicksort
2) Linear Search
3) Bubble Sort
| | 2 |
| What will happen when freeing memory twice
| | 2 |
| what is the difference between #include<stdio.h> and
#include "stdio.h" ? | | 2 |
|
main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output?? | Ramco | 17 |
| What should be keep precautions while using the recursion
method? | | 1 |
| what is the difference between
const char *p, char const *p, const char* const p
| Accenture | 4 |
| Look at the Code:
#include<string.h>
void main()
{
char s1[]="abcd";
char s2[10];
char s3[]="efgh";
int i;
clrscr();
i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd"));
printf("%d",i);
}
What will be the output?
A)No output B) A Non Integer C)0 D) Garbage
| Accenture | 6 |
| which one of follwoing will read a character from keyboard
and store in c
a)c=getc()
b)c=getchar()
c)c=getchar(stdin)
d)getc(&c)
e)none | | 5 |
| What is the output from this program?
#include <stdio.h>
void do_something(int *thisp, int that)
{
int the_other;
the_other = 5;
that = 2 + the_other;
*thisp = the_other * that;
}
int main(void)
{
int first, second;
first = 1;
second = 2;
do_something(&second, first);
printf("%4d%4d\n", first, second);
return 0;
}
| | 2 |
| what is the mean of c languages.
| Polaris | 1 |
| wap in c to accept n number display the highest and lowest
value | | 2 |
| In the below code, how do you modify the value 'a' and print
in the function. You'll be allowed to add code only inside
the called function.
main()
{
int a=5;
function(); // no parameters should be passed
}
function()
{
/* add code here to modify the value of and print here */
} | | 1 |
| can we initialize all the members of union? | | 2 |
| How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST | Adobe | 5 |
| write program on arrays
| GE | 3 |
| what r callback function? | | 1 |
| HOW TO HANDLE EXCEPTIONS IN C | | 7 |
| how to add numbers without using arithmetic operators. | TCS | 13 |
| |
| For more C Interview Questions Click Here |