0
2.4kviews
State true or false with reason :
  1. The Statement void p; is valid.
  2. An algorithm is a graphical representation of the logic of a program.
  3. Comments in the program make debugging of the program easier.
  4. There is no difference between ‘\0’ and ‘0’.

Subject : Structured Programming Approach

Title : Introduction to Computer, Algorithm and Flowchart

Marks : 4M

1 Answer
0
13views
  1. The Statement void p; is valid.
    True
    A pointer to void means a generic pointer that can point to any data type.
    The size of the void pointer in C is the same as the size of the pointer of character type.

    1. An algorithm is a graphical representation of the logic of a program.
      False
      An algorithm is pseudocode or a set of instructions used to execute a code.
      Whereas Flowchart is a graphical representation of the logic of a program.

    2. Comments in the program make debugging of the program easier.
      True
      A comment is readable explanation to the code. Which gives a idea what a block of code would be doing on execution

    3. There is no difference between ‘\0’ and ‘0’.
      False
      ‘\0’ is a null character it depends where it's used if used as a character then used as string terminator , if used as a number then it's zero and if used as a Boolean then it's false. It's a non-printing value.

      ‘0’ is character zero.

Please log in to add an answer.