C/C++ Interview Questions
-
How do you decide which
integer type to use?
-
What should the 64-bit
integer type on new, 64-bit machines be?
-
What’s the best way to
declare and define global variables?
-
What does extern mean in
a function declaration?
-
What’s the auto keyword
good for?
-
I can’t seem to define a
linked list node which contains a
pointer to itself.
-
How do I declare an array
of N pointers to functions returning
pointers to functions returning pointers
to characters?
-
How can I declare a
function that returns a pointer to a
function of its own type?
-
My compiler is
complaining about an invalid
redeclaration of a function, but I only
define it once and call it once. What’s
happening?
-
What can I safely assume
about the initial values of variables
which are not explicitly initialized?
C
QUESTIONS
-
How do you write a
program which produces its own source
code as its output?
-
How can I find the day of
the week given the date?
-
Why doesn’t C have nested
functions?
-
What is the most
efficient way to count the number of
bits which are set in a value?
-
How can I convert
integers to binary or hexadecimal?
-
How can I call a
function, given its name as a string?
-
How do I access
command-line arguments?
-
How can I return multiple
values from a function?
-
How can I invoke another
program from within a C program?
-
How can I access memory
located at a certain address?
-
How can I allocate arrays
or structures bigger than 64K?
-
How can I find out how
much memory is available?
-
How can I read a
directory in a C program?
-
How can I increase the
allowable number of simultaneously open
files?
-
What’s wrong with the
call
fopen(”c:\newdir\file.dat”, “r”)?
COPYRIGHT 2009 ALL RIGHTS RESERVED
FREECPROGRAMS.COM |