Cecily147 Cecily147
  • 13-07-2019
  • Computers and Technology
contestada

Unless you explicitly initialize global variables, they are automatically initialized to

_________.

Respuesta :

KrystaCort KrystaCort
  • 22-07-2019

Answer:

Zero(0)

Explanation:

Global Variables

Variables which are declared outside any function. Any function can use these variables,they are automatically initialized to zero(0).They are generally declared before main() function.

Example- C program for showing global variable is 0.

  #include <stdio.h>

   int g;  // declaring g as global variable

   int main()

   {

       printf("%d",g);  //printing global variable

       return 0;

    }

Output

  0

Answer Link

Otras preguntas

Geoffrey ate  2/3 of a mini pizza. Claire ate 1 3/4  times as much pizza as Geoffrey.  How many mini pizzas did Claire eat? Express your answer in simplest form
It takes Akira 10 minutes to make a black and white drawing and 25 minutes for a color drawing.  On Saturday he made a total of 9 drawings in 2 hours.  Write an
solve the missing measure of a square, when P=76inFormula: P=4s
The sum of two numbers is 95, and their difference is 61. What are the two numbers?
graph x+2 is greater than -2
what do you call two ratios that have the same value
The sum of two numbers is 95, and their difference is 61. What are the two numbers?
9/10 divided by (1/10 plus 2/5)
what do you call two ratios that have the same value
solve the missing measure of a square, when P=76inFormula: P=4s