answersLogoWhite

0


Best Answer

Automatic variables are variables that are declared within the scope of a block, usually a function. They exist only within that scope, i.e. that block, and they cease to exist after the block is exited. These variables are usually allocated from the stack frame.

User Avatar

Wiki User

βˆ™ 14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 14y ago

void fun (void)

{

int i, j, k;

double b;

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Examples of automatic variables in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the automatic variables in sas?

_N_ and _ERROR_ are the automatic variable in sas


What is the default value of int in c?

I'm not sure. I have written C programs in which the default value was what ever happened to be in the variable's memory location when the space was allocated. So it could be 0. Or it could be anything. That is why it is always important to initialize variables when using C. I don't know if this is true with modern C compilers. No default value for automatic variables, 0 for others.


What variables in turbo C?

There are mainly 3 types of variables in c. Integer, Float and character :)


What is automatic storage class specifiers?

Automatic storage is the default storage class for all non-static local variables including formal arguments. All automatic variables are allocated on the call stack and are automatically released when they fall from scope.


What is A C in math?

A and C are both variables.


C memory model?

Memory Organization for a process -------------------------------------------- CODE SEGMENT: contains executable code DATASEGMENT:contains static and global variable HEAP SEGMENT:Dynamically allocated variables will be in heap STACK SEGMENT:For local or automatic variables PREM G premgnath@gmail.com


What is turbo c variables?

Turbo C variables are memory place holders for storage of data during the execution of a Turbo C program. Types of variables include integer, real and char.


Quiz?

Examples of code will be shown. match it to the correct vocabulary. Variables are represented by ()


What are the examples of flow variables in economics?

Labour is a variable,Population,Stock etc are variables


What are examples of extraneous variables?

ask your hand


Are C variables initialized to 0 by default?

Only global/static variables are, local variables aren't.


What does a b and c mean in math?

A,b,c are variables. They usually refer to the sides of a triangle, but also can mean just normal variables.