Answers for "variable definition in c"

C
0

declaring variables in c

// First declaring and then initializing
int a;
int a = 5;
// Declaring and initializing at one time
int b = 6;

// Basically used datatypes 
// 1. int // integer
int num = 2;
// 2. float // decimal number
float number = 234.87;
// 3. char // character
char ch = 'p';
// 4. char[] // string
char name[] = {'B','i', 'l','l'}
			// or
char fav_fruit[] = "apple"
Posted by: Guest on February-03-2021
0

meaning of &variable c

int main()
{
    int a = 3;
    func(&a)
}
/*
the & operand, used with the a variable, gives the memory address of that variable
*/
Posted by: Guest on October-28-2020
0

variable in c

type variable_list;
Posted by: Guest on November-30-2020

Code answers related to "C"

Browse Popular Code Answers by Language