Skip to main content

C language interview Questions.

   1. What is embedded C?

  • Embedded C is the extension of C programming language.
  • Embedded C is used to develop micro controller based applications.
  • Embedded C includes features not available in normal C like fixed-point arithmetic, named address spaces, and basic I/O hardware addressing.
  • Cell phones, MP3 players are some example for embedded systems in which embedded C is used to program and control these devices.


     2. Which level is C language belonging to?

  • C language is belonging to middle level language. C language behaves as a bridge between low level (machine level) languages and high level languages.
  • C language is more user friendly than machine level languages.
  • C language does not support all the concepts that high level languages offer. So, C programming language is called as middle level language.
   

    3. What do you mean by high level, middle level and low level languages and give an example for each?

High level languages –
  • These level languages provide almost everything that the programmer might need to do as already build into the language.
  • Example: Java, Python
Middle level languages –
  • These languages don’t provide all the built-in functions found in high level languages, but provide all building blocks that we need to produce the result we want.
  • Example: C, C++

Low level languages –
  • These languages provide nothing other than access to the machine’s basic instruction set.
  • Example: Assembly language.

  4. What is printf() ?
  • The C library function int printf(const char *format, ...) sends formatted output to stdout.
  • printf() function is used to print the “character, string, float, integer, octal and hexadecimal values” onto the output screen.

  5. What is scanf() ?
  • The C library function scanf is a function that reads formatted data from stdin
  • printf() function is used to scan the “character, string, float, integer, octal and hexadecimal values” onto the output screen.

     6. What is compiler?
  • Compiler is a program that converts human readable code into machine readable code. This process is called compilation.

Comments

Popular posts from this blog

Become an Embedded Software Engineer

Before starting Embedded coding, you must understand the important topics of C language. I have a good knowledge of c language i.e functions, array, pointer,string, loop, structure etc. When I saw first code, then i was shocked because code was different as per my coding knowledge. After a long research on that code, I found, I ignore a lot of topics which are really important. The topics are :- Embedded Developer Macros & preprocessor File handling Bitwise operators string.h file Dynamic Memory Allocation Buffer Manipulation Function keywords like - const, volatile, extern, uint_8 t, etc. Others After a great discussion, i would like to conclude as a embedded developer that above mention topics makes an excellent developer.