| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| The C language terminator is
a.semicolon
b.colon
c.period
d.exclamation mark
| TCS | 3 |
| how many error occurs in C language ? | Wipro | 11 |
| Unsigned char c;
for ( c=0;c!=256;c++2)
printf("%d",c);
No. of times the loop is executed ?
| Mascot | 3 |
| You are given a string which contains some special
characters. You also have set of special characters. You are
given other string (call it as pattern string). Your job is
to write a program to replace each special characters in
given string by pattern string. You are not allowed to
create new resulting string. You need to allocate some new
memory to given existing string but constraint is you can
only allocate memory one time. Allocate memory exactly what
you need not more not less. | Microsoft | 2 |
| int *p=20;
if u print like dis printf("%d",p);
o\p:- 20; how is it possible?
plz give me the explanation. | Global-Edge | 11 |
| Write the program for displaying the ten most frequent words
in a file such that your program should be efficient in all
complexity measures. | Google | 3 |
| What is the purpose of Scanf Print, getchar, putchar,
function? | | 2 |
| what are two categories of clint-server application
development ? | | 1 |
| what is diff b/w huge & far & near pointer?? | HCL | 1 |
| Write a C program that reads a series of strings and prints
only those ending in "ed" | | 2 |
| Is main() function predfined or userdefined? | | 7 |
| write a program to find the number of even integers and odd
integers in a given array in c language | Olive-Tech | 2 |
| what is the difference between #include<stdio.h> and
#include "stdio.h" ? | | 2 |
| Given an unsigned integer, find if the number is power of 2? | | 3 |
| Can I pass constant values to functions which accept structure
arguments? | | 2 |
| In the following code segment what will be the result of the
function,
value of x , value of y
{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}
a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT
| IBM | 1 |
| program to find the ASCII value of a number | | 5 |
| difference between my-strcpy and strcpy ? | Geometric-Software | 3 |
| 24.what is a void pointer?
25.why arithmetic operation can’t be performed on a void
pointer?
26.differentiate between const char *a; char *const a;
and char const *a;
27.compare array with pointer?
28.what is a NULL pointer?
29.what does ‘segmentation violation’ mean?
30.what does ‘Bus Error’ mean?
31.Define function pointers?
32.How do you initialize function pointers? Give an example?
33.where can function pointers be used? | | 1 |
| We can draw a box in cprogram by using only one printf();&
without using graphic.h header file? | NIIT | 3 |
| |
| For more C Interview Questions Click Here |