Skip to main content

Below are four questions covering around C basics

Dear Reader, Below are four questions covering around C basics.
Question 1
Can you explain the difference between data types and modifiers?
Answer :
Data types are the ones including int, float, char, double that determine the type and storage of the data within the variables. Whereas modifiers are used in conjunction with data types to precisely control the amount of storage to a variable of a particular data type. short, long etc are modifiers.
Question 2
Is it possible to precisely tell the size of short int in any machine?
Answer :
This depends upon the implementation. Guideline from ANSI C on the size of short int is that the size of short int should be lesser than or equal to than that of int.
Question 3
Does C have automatic garbage collection? What this can lead to?
Answer :
C does not have automatic garbage collection. In worst cases, this can lead to a memory leak. Memory leak occurs when dynamically allocated memory is not available for reuse.
Question 4
Tell a common mistake that programmers often do when using a new variable as counter for FOR loops? What could be a simple preventive measure?
Answer :
When using a new variable, some programmers tend to forget the initialization part. There could be several preventive measures. One measure could be that programmer can consider declaring two or three extra variables which can be used for future FOR loops as and when required.

Popular posts from this blog

CIVIL SERVICES' (I.A.S.) EXAMINATION

The Union Public Service Commission (U.P.S.C.)  conducts Civil Services' Examination once a year in two stages. The Preliminary Examination (Objective Type) for selection of candidates for the Main Examination is held in the month of May. The Civil Services Main Examination  is held in the months of October/November. Blank application forms and other particulars are published in the Employment News, generally in the month of December. The last date for the submission of applications to the Secretary, Union Public Service Commission, Dholpur House, Shahjahan Road, NewDelhi-11001 1 is usually the last week of January of the year of examination. The Combined Civil Services Examination is conducted for Recruitment to the following Services/Posts: 1. Indian Administrative Service. 2. Indian Foreign Service. 3. Indian Police Service. 4. Indian P & T Accounts & Finance Service, Group 'A'. 5. Indian Audit and Accounts Service, Group 'A'. 6. Indian Customs and Centr...

(B) Basic Question in .net(dotNet) What is a IL?

(B)What is a IL? Twist :- What is MSIL or CIL , What is JIT? (IL)Intermediate Language is also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code is compiled to IL. This IL is then converted to machine code at the point where the software is installed, or at run-time by a Just-In- Time (JIT) compiler.

No need to join expensive coaching. Learn Computer Languages here.

Get Study material, Books, Notes, Running Programs, Projects, and Teach Yourself. be an programmer C Programming    C++         Java             PHP          JavaScript              HTML           MS-SQL       SQL    VB 6.0      ASP         C#              dotNet      JSP      XML      CSS      Android Development If you found this useful then share with your friends....... If have any suggestions or want to share notes, books, information then mail us at:  goforexamin@gmail.com With Subject "Language" or...