C Interview Questions AND ANSWER
#1

C Interview Questions AND ANSWER

[attachment=16036]

What is C language?
The C programming language is a standardized programming language
developed in the early 1970s by Ken Thompson and Dennis Ritchie for
use on the UNIX operating system. It has since spread to many other
operating systems, and is one of the most widely used programming
languages. C is prized for its efficiency, and is the most popular
programming language for writing system software, though it is also
used for writing applications.


printf() Function
What is the output of printf("%d")?

1. When we write printf("%d",x); this means compiler will print the
value of x. But as here, there is nothing after %d so compiler will show
in output window garbage value



malloc() Function- What is the difference between "calloc(...)" and
"malloc(...)"?

1. calloc(...) allocates a block of memory for an array of elements of a
certain size. By default the block is initialized to 0. The total number of
memory allocated will be (number_of_elements * size).
malloc(...) takes in only a single argument which is the memory
required in bytes. malloc(...) allocated bytes of memory and not blocks
of memory like calloc(...).


Compilation How to reduce a final size of executable?
Size of the final executable can be reduced using dynamic linking for
libraries.


What does static variable mean?

there are 3 main uses for the static.

1. If you declare within a function:
It retains the value between function calls

2.If it is declared for a function name:
By default function is extern..so it will be visible from other files if the
function declaration is as static..it is invisible for the outer files

3. Static for global variables:
By default we can use the global variables from outside files If it is
static global..that variable is limited to with in the file
Advantages

Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: interview with kiran bedi, interview with a milkman, the buzz interview, teachers interview questions, interview rounds in adp**s hydraulic modern trailer, interview questions for tgt science, interview with dracula,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  Physics Lab Viva Voce Questions and its answers Laser Parameters seminar addict 2 10,212 12-05-2014, 10:04 PM
Last Post: seminar report asees
  Types and Functions of Jigs and Fixtures project uploader 1 3,221 27-10-2012, 04:11 PM
Last Post: seminar details
  PROTOTYPING AND DYNAMIC ANALYSIS OF ROTOR SHAFT AND HUB seminar details 0 416 08-06-2012, 05:13 PM
Last Post: seminar details
  NC and CNC machines and Control Programming ppt seminar details 0 2,106 08-06-2012, 12:53 PM
Last Post: seminar details
  design and implementation of intelligent wind turbine and control system seminar details 0 1,136 07-06-2012, 02:53 PM
Last Post: seminar details
  G. K. questions seminar paper 0 854 08-03-2012, 05:04 PM
Last Post: seminar paper
  Comparison and Contrast between the OSI and TCP ppt seminar paper 0 1,212 07-03-2012, 03:06 PM
Last Post: seminar paper
  Indian Standard CODE OF PRACTICE FOR PLANNING AND DESIGN OF PORTS AND HARBOURS seminar paper 0 1,010 05-03-2012, 03:32 PM
Last Post: seminar paper
  Efficient and Secure Content Processing and Distribution by Cooperative Intermediarie project uploader 0 832 03-03-2012, 11:02 AM
Last Post: project uploader
  .NET interview question seminar paper 0 832 02-03-2012, 02:10 PM
Last Post: seminar paper

Forum Jump: