Search
 
SCRIPT & CODE EXAMPLE
 

C

C Why enums are used?

#include <stdio.h>

enum suit {
    club = 0,
    diamonds = 10,
    hearts = 20,
    spades = 3
} card;

int main() 
{
    card = club;
	printf("Size of enum variable = %d bytes", sizeof(card));	
	return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: How to open terminal cs50 ide 
C :: get flag status c code 
C :: c++ convert to c online 
C :: clarity ppm jasper domain commands 
C :: esp rainmaker led 
C :: wap in c to input n numbers in an array, find out the sum of odd nos. and even nos. display the numbers whose sum is high. 
C :: how to know a type of a numbe in c 
C :: changing data type in one line c program 
C :: write a ppm image 
C :: anticonstitutionnellement 
C :: write varriable in file C 
C :: print octal in c 
C :: q2. wap in c to input 5 numbers in an array and display in reverse order. 
C :: gsl matrix invert 
C :: sort vectors c 
C :: print binary c 
C :: tableau c 
C :: Recommended compiler and linker flags for GCC 
Dart :: flutter debug tag 
Dart :: flutter disbal PageView swipe 
Dart :: flutter border around textbutton 
Dart :: dart convert string to datetime 
Dart :: FirebaseOptions cannot be null when creating the default app 
Dart :: flutter cliprrect 
Dart :: flutter delete chip 
Dart :: dart loop through map 
Dart :: flutter absorb pointer 
Dart :: flutter column mainaxissize 
Dart :: dart utf-16 
Dart :: size row to maximum flutter 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =