what is the difference between auto and static keywords
Answer / dr. guruprasad
auto and static are both storage classes.
if a variable is declared as auto - then the life of it will be only till function block.
if static - then value persists between various function call. Life till program ends.
| Is This Answer Correct ? | 0 Yes | 0 No |
#include<stdio.h> int main() { int i=2; int j=++i + ++i + i++; printf("%d\n",i); printf("%d\n",j); }
Give basis knowledge of web designing ...
What is c language & why it is used?
What is time null in c?
When do we get logical errors?
What is use of integral promotions in c?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
write a program to insert an element at the specified position in the given array in c language
What is identifiers in c with examples?
a c code by using memory allocation for add ,multiply of sprase matrixes
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
main difference between c and c++ language