हिंदी

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

Advertisements
Advertisements

प्रश्न

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

संक्षेप में उत्तर

उत्तर

  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×