flightlesno.blogg.se

Loop questions in c
Loop questions in c










Q #6) What is the explanation for the dangling pointer in C?Īnswer: When there is a pointer pointing to a memory address of any variable, but after some time the variable was deleted from the memory location while keeping the pointer pointing to that location is known as a dangling pointer in C. Those reserved words have special meaning and it is not possible to use them for any activity other than its intended functionality. Q #5) What are reserved words with a programming language?Īnswer: The words that are a part of the standard C language library are called reserved words.

  • Use increment (++) and decrement (-) operator.Įxample When x=4, x++ returns 5 and x- returns 3.Įxample When x=4, use x+1 to get 5 and x-1 to get 3.
  • Q #4) What is the process to create increment and decrement statement in C?Īnswer: There are two possible methods to perform this task. Misspelled commands or incorrect case commands, an incorrect number of parameters in calling method /function, data type mismatches can be identified as common examples for syntax errors.

    loop questions in c

    Q #3) What is the description for syntax errors?Īnswer: The mistakes/errors that occur while creating a program are called syntax errors.

  • Void – Special purpose type without any value.
  • Double – Double-precision floating-point value.
  • Q #2) What are the basic data types associated with C?

    loop questions in c

  • Extensibility: Possibility to add new features by the programmer.
  • Speed: C comes with support for system programming and hence it compiles and executes with high speed when compared with other high-level languages.
  • loop questions in c

  • Flexibility: The possibility of a programmer to control the language.
  • Modularity: Possibility to break down large programs into small modules.
  • Portability: It is a platform-independent language.
  • loop questions in c

    Q #1) What are the key features in the C programming language? Most Common C Programming Interview Questions The main usage of C programming language includes Language Compilers, Operating Systems, Assemblers, Text Editors, Print Spoolers, Network Drivers, Modern Programs, Data Bases, Language Interpreters, and Utilities.












    Loop questions in c