A platform combines multiple tutorials, projects, documentations, questions and answers for developers
  • Home (current)
  • Documentations
  • About
  • Login
  1. Home
  2. Documentations
  3. C
  4. else

C keywords: else

Usage

  • if statement: as the declaration of the alternative branch

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/c/keyword/else

Variadic functions
Variadic functions
va_arg
va_copy
va_end
va_list
va_start
C language
#define directive
#elif directive
#else directive
#endif directive
#error directive
#if directive
#ifdef directive
#ifndef directive
#include directive
#line directive
#pragma directive
ASCII Chart
Alternative operators and tokens
Analyzability
Arithmetic operators
Arithmetic types
Array declaration
Array initialization
Assignment operators
Basic concepts
Bit fields
C Operator Precedence
C language
Comments
Comparison operators
Conditional inclusion
Conformance
Constant expressions
Declarations
Program support
EXIT_FAILURE
EXIT_SUCCESS
Enumerations
Escape sequences
Expressions
External and tentative definitions
File scope
Function declarations
Function definitions
Functions
Generic selection
Identifier
Implicit conversions
Increment/decrement operators
Initialization
Lifetime
Logical operators
Lookup and name spaces
Main function
Member access operators
Memory model
Objects and alignment
Order of evaluation
Other operators
Phases of translation
Pointer declaration
Preprocessor
Program support utilities
SIGABRT
SIGFPE
SIGILL
SIGINT
SIGSEGV
SIGTERM
SIG_DFL
SIG_ERR
SIG_IGN
Scalar initialization
Scope
Statements
Static storage duration
Storage-class specifiers
Struct and union initialization
Struct declaration
Thread storage duration
Type
Type
Typedef declaration
Undefined behavior
Union declaration
Value categories
Variadic arguments
_Alignof operator
_Exit
_Noreturn function specifier
abort
alignas
at_quick_exit
atexit
atomic types
break statement
cast operator
character constant
compound literals
const type qualifier
continue statement
do-while loop
exit
floating constant
for loop
getenv
getenv_s
goto statement
if statement
inline function specifier
integer constant
jmp_buf
longjmp
quick_exit
raise
restrict type qualifier
return statement
setjmp
sig_atomic_t
signal
sizeof operator
static assert declaration
string literals
switch statement
system
volatile type qualifier
while loop
Error handling
Error handling
Error numbers
abort_handler_s
assert
constraint_handler_t
errno
ignore_handler_s
set_constraint_handler_s
static_assert
Numerics
CMPLX
CMPLXF
CMPLXL
Common mathematical functions
Complex number arithmetic
FE_ALL_EXCEPT
FE_DFL_ENV
FE_DIVBYZERO
FE_DOWNWARD
FE_INEXACT
FE_INVALID
FE_OVERFLOW
FE_TONEAREST
FE_TOWARDZERO
FE_UNDERFLOW
FE_UPWARD
FP_INFINITE
FP_NAN
FP_NORMAL
FP_SUBNORMAL
FP_ZERO
Floating-point environment
HUGE_VAL
HUGE_VALF
HUGE_VALL
I
INFINITY
MATH_ERREXCEPT
MATH_ERRNO
NAN
Numerics
Pseudo-random number generation
RAND_MAX
Type-generic math
_Complex_I
_Imaginary_I
abs
acos
acosf
acosh
acoshf
acoshl
acosl
asin
asinf
asinh
asinhf
asinhl
asinl
atan
atan2
atan2f
atan2l
atanf
atanh
atanhf
atanhl
atanl
cabs
cabsf
cabsl
cacos
cacosf
cacosh
cacoshf
cacoshl
cacosl
carg
cargf
cargl
casin
casinf
casinh
casinhf
casinhl
casinl
catan
catanf
catanh
catanhf
catanhl
catanl
cbrt
cbrtf
cbrtl
ccos
ccosf
ccosh
ccoshf
ccoshl
ccosl
ceil
ceilf
ceill
cexp
cexpf
cexpl
cimag
cimagf
cimagl
clog
clogf
clogl
complex
conj
conjf
conjl
copysign
copysignf
copysignl
cos
cosf
cosh
coshf
coshl
cosl
cpow
cpowf
cpowl
cproj
cprojf
cprojl
creal
crealf
creall
csin
csinf
csinh
csinhf
csinhl
csinl
csqrt
csqrtf
csqrtl
ctan
ctanf
ctanh
ctanhf
ctanhl
ctanl
div
double_t
erf
erfc
erfcf
erfcl
erff
erfl
exp
exp2
exp2f
exp2l
expf
expl
expm1
expm1f
expm1l
fabs
fabsf
fabsl
fdim
feclearexcept
fegetenv
fegetexceptflag
fegetround
feholdexcept
feraiseexcept
fesetenv
fesetexceptflag
fesetround
fetestexcept
feupdateenv
float_t
floor
floorf
floorl
fma
fmaf
fmal
fmax
fmaxf
fmaxl
fmin
fminf
fminl
fmod
fmodf
fmodl
fpclassify
frexp
frexpf
frexpl
hypot
hypotf
hypotl
ilogb
ilogbf
ilogbl
imaginary
imaxabs
imaxdiv
isfinite
isgreater
isgreaterequal
isinf
isless
islessequal
islessgreater
isnan
isnormal
isunordered
labs
ldexp
ldexpf
ldexpl
ldiv
lgamma
lgammaf
lgammal
llabs
lldiv
llrint
llrintf
llrintl
llround
llroundf
llroundl
log
log10
log10f
log10l
log1p
log1pf
log1pl
log2
log2f
log2l
logb
logbf
logbl
logf
logl
lrint
lrintf
lrintl
lround
lroundf
lroundl
math_errhandling
modf
modff
modfl
nan
nanf
nanl
nearbyint
nearbyintf
nearbyintl
nextafter
nextafterf
nextafterl
nexttoward
nexttowardf
nexttowardl
pow
powf
powl
rand
remainder
remainderf
remainderl
remquo
remquof
remquol
rint
rintf
rintl
round
roundf
roundl
scalbln
scalblnf
scalblnl
scalbn
scalbnf
scalbnl
signbit
sin
sinf
sinh
sinhf
sinhl
sinl
sqrt
sqrtf
sqrtl
srand
tan
tanf
tanh
tanhf
tanhl
tanl
tgamma
tgammaf
tgammal
trunc
truncf
truncl
Algorithms
Algorithms
bsearch
bsearch_s
qsort
qsort_s
Dynamic memory management
C memory management library
aligned_alloc
calloc
free
malloc
realloc
Date and time
CLOCKS_PER_SEC
Date and time utilities
asctime
asctime_s
clock
clock_t
ctime
ctime_s
difftime
gmtime
gmtime_s
localtime
localtime_s
mktime
strftime
time
time_t
timespec
timespec_get
tm
wcsftime
Strings
Null-terminated byte strings
Null-terminated multibyte strings
Null-terminated wide strings
Strings library
atof
atoi
atol
atoll
btowc
c16rtomb
c32rtomb
char16_t
char32_t
isalnum
isalpha
isblank
iscntrl
isdigit
isgraph
islower
isprint
ispunct
isspace
isupper
iswalnum
iswalpha
iswblank
iswcntrl
iswctype
iswdigit
iswgraph
iswlower
iswprint
iswpunct
iswspace
iswupper
iswxdigit
isxdigit
mblen
mbrlen
mbrtoc16
mbrtoc32
mbrtowc
mbsinit
mbsrtowcs
mbsrtowcs_s
mbstate_t
mbstowcs
mbstowcs_s
mbtowc
memchr
memcmp
memcpy
memcpy_s
memmove
memmove_s
memset
memset_s
strcat
strcat_s
strchr
strcmp
strcoll
strcpy
strcpy_s
strcspn
strerror
strerror_s
strerrorlen_s
strlen
strncat
strncat_s
strncmp
strncpy
strncpy_s
strnlen_s
strpbrk
strrchr
strspn
strstr
strtod
strtof
strtoimax
strtok
strtok_s
strtol
strtold
strtoll
strtoul
strtoull
strtoumax
strxfrm
tolower
toupper
towctrans
towlower
towupper
wcrtomb
wcrtomb_s
wcscat
wcscat_s
wcschr
wcscmp
wcscoll
wcscpy
wcscpy_s
wcscspn
wcslen
wcsncat
wcsncat_s
wcsncmp
wcsncpy
wcsncpy_s
wcsnlen_s
wcspbrk
wcsrchr
wcsrtombs
wcsrtombs_s
wcsspn
wcsstr
wcstod
wcstof
wcstoimax
wcstok
wcstok_s
wcstol
wcstold
wcstoll
wcstombs
wcstombs_s
wcstoul
wcstoull
wcstoumax
wcsxfrm
wctob
wctomb
wctomb_s
wctrans
wctype
wmemchr
wmemcmp
wmemcpy
wmemcpy_s
wmemmove
wmemmove_s
wmemset
Atomic operations
ATOMIC_*_LOCK_FREE
ATOMIC_FLAG_INIT
ATOMIC_VAR_INIT
Atomic operations library
atomic_compare_exchange_strong
atomic_compare_exchange_strong_explicit
atomic_compare_exchange_weak
atomic_compare_exchange_weak_explicit
atomic_exchange
atomic_exchange_explicit
atomic_fetch_add
atomic_fetch_add_explicit
atomic_fetch_and
atomic_fetch_and_explicit
atomic_fetch_or
atomic_fetch_or_explicit
atomic_fetch_sub
atomic_fetch_sub_explicit
atomic_fetch_xor
atomic_fetch_xor_explicit
atomic_flag
atomic_flag_clear
atomic_flag_clear_explicit
atomic_flag_test_and_set
atomic_flag_test_and_set_explicit
atomic_init
atomic_is_lock_free
atomic_load
atomic_load_explicit
atomic_signal_fence
atomic_store
atomic_store_explicit
atomic_thread_fence
kill_dependency
memory_order
C keywords
C keywords
_Alignas
_Alignof
_Atomic
_Bool
_Complex
_Generic
_Imaginary
_Noreturn
_Static_assert
_Thread_local
auto
break
case
char
const
continue
default
do
double
else
enum
extern
float
for
fortran
goto
if
inline
int
long
register
restrict
return
short
signed
sizeof
static
struct
switch
typedef
union
unsigned
void
volatile
while
Type support
Boolean type support library
FLT_EVAL_METHOD
FLT_ROUNDS
Fixed width integer types
NULL
Numeric limits
Type support
max_align_t
offsetof
ptrdiff_t
size_t
Thread support
ONCE_FLAG_INIT
TSS_DTOR_ITERATIONS
Thread support library
call_once
cnd_broadcast
cnd_destroy
cnd_init
cnd_signal
cnd_timedwait
cnd_wait
mtx_destroy
mtx_init
mtx_lock
mtx_plain
mtx_recursive
mtx_timed
mtx_timedlock
mtx_trylock
mtx_unlock
once_flag
thrd_busy
thrd_create
thrd_current
thrd_detach
thrd_equal
thrd_error
thrd_exit
thrd_join
thrd_nomem
thrd_sleep
thrd_success
thrd_timedout
thrd_yield
thread_local
tss_create
tss_delete
tss_get
tss_set
File input/output
File input/output
clearerr
fclose
feof
ferror
fflush
fgetc
fgetpos
fgets
fgetwc
fgetws
fopen
fopen_s
fprintf
fprintf_s
fputc
fputs
fputwc
fputws
fread
freopen
freopen_s
fscanf
fscanf_s
fseek
fsetpos
ftell
fwide
fwprintf
fwprintf_s
fwrite
fwscanf
fwscanf_s
getc
getchar
gets
gets_s
getwchar
perror
printf
printf_s
putc
putchar
puts
putwc
putwchar
remove
rename
rewind
scanf
scanf_s
setbuf
setvbuf
snprintf
snprintf_s
snwprintf_s
sprintf
sprintf_s
sscanf
sscanf_s
swprintf
swprintf_s
swscanf
swscanf_s
tmpfile
tmpfile_s
tmpnam
tmpnam_s
ungetc
ungetwc
vfprintf
vfprintf_s
vfscanf
vfscanf_s
vfwprintf
vfwprintf_s
vfwscanf
vfwscanf_s
vprintf
vprintf_s
vscanf
vscanf_s
vsnprintf
vsnprintf_s
vsnwprintf_s
vsprintf
vsprintf_s
vsscanf
vsscanf_s
vswprintf
vswprintf_s
vswscanf
vswscanf_s
vwprintf
vwprintf_s
vwscanf
vwscanf_s
wprintf
wprintf_s
wscanf
wscanf_s
Localization support
LC_ALL
LC_COLLATE
LC_CTYPE
LC_MONETARY
LC_NUMERIC
LC_TIME
Localization support
lconv
localeconv
setlocale
Copyright ©2025 TypeError Powered By AnyPost, page cost 93ms.
Privacy Policy