© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
enggedu

C and C++ Interview Questions

15. What are all the basic data types available in c?

Ans:
 
Data types are used to allocate memory cells in RAM  for specific type of  data.
  Basic Data types:

  • char
  • int
  • float
  • void

Ex - Q1: Which kind of character set is used by c compilers?
       
     Ans:

    C compiler use the ASCII character set.
    ASCII has 256 symbols. C compiler can understand only the ASCII symbols.

Ex - Q2:  Is array is pointer in c?

Ans:

Yes. Array name (i.e. array type variable) always points starting position of the array (i.e. index 0 ).So basically arrays are points the memory location. Therefore we can access the array element by indirect operator *.

Ex - Q3:   When the static variables are initialized?

Ans:

   The static variables are initialized at compile time. So it initialized only once in the program. It does not allow the garbage values. It implicitly initialized as ZERO. It have the scope after the function completion.


SLogix Student Projects
bottom