मराठी

In what way is static initialisation of data type different from dynamic initialisation?

Advertisements
Advertisements

प्रश्न

In what way is static initialisation of data type different from dynamic initialisation? 

थोडक्यात उत्तर
Advertisements

उत्तर

  1. This method assigns a constant directly to a declared variable. When a variable is declared, it is initialised before being used in programming logic.
    • Examples: 
      int a = 0;
      float f = 0.0;
      double d = 0.0;
  2. Dynamic initialisation refers to the process of setting a variable during program execution. In this scenario, a variable is allocated based on an arithmetic operation or logical function.
    • Examples: 
      int a, b, c;
      c = a + b;
      String s1, s2, s3;
      s3 = s1 + s2
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.03: Values and Data Types - EXERCISES [पृष्ठ ३३]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.03 Values and Data Types
EXERCISES | Q III. 10. | पृष्ठ ३३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×