Question : variables in c
Answered by : defeated-duck-gt5c5f0qcuky
#include <stdio.h>
void function(){
int x = 20;//local variable
static int y = 30;//static variable
x = x + 10;
y = y + 10;
printf("\n%d,%d",x,y);
}
int main() {
function();
function();
function();
return 0;
}
Source : https://www.geeksforgeeks.org/variables-and-keywords-in-c/ | Last Update : Tue, 25 Jan 22
Question : variables in c
Answered by : iamatp-on-scratch
// Integer
int x = 72;
// Float (Decimals)
float y = 23.14;
Source : | Last Update : Sat, 16 Jul 22
Question : C Variable
Answered by : samer-saeid
int playerScore = 95;
Source : | Last Update : Sun, 19 Jun 22