|
C Programming Tutorials
Basics of C:
Facts about C
Why to Use C
C Program File
C Compilers
Program Structure:
Simple C Program
C
Program Compilation
Basic DataTypes:
DataTypes
Modifiers
Qualifiers
Arrays
Variable Types:
Local Variable
Global
Variable
Storage Classes:
auto storage class
register storage
class
static storage
class
extern storage
class
Using Constants:
Defining Constants
The enum Data Types
Operator Types:
Arithmetic Operators
Logical Operators
Bitwise Operators
Assignment Operators
Misc
Operators
Control Statements:
Branching
Looping
Input and Output:
printf() function
scanf() function
Pointing to Data:
Pointers and Arrays
Pointer
Arithmetic
Pointer Arithmetic
with arrays
Functions:
Using functions
Declaration and
Definition
Strings:
Reading and Writing
Strings
String Manipulation Function
Structured DataTypes:
Structure
Pointer to Structure
Working with Files:
Files
Basic I/O
Bits:
Bits Manipulation
Bits Field
Pre-Processors:
Pre-Processors Examples
Parameterized Macros
Macro
Caveats
Useful Concepts
Built-in Library Functions:
String Manipulation
Function
Memory Management
Function
Buffer
Manipulation
Character
Functions
Error Handling
Functions
Soft Skills
Communication Skills
Leadership Skills
.........More
|
|
C Programming Tutorials
isalnum function
Synopsis:
#include <stdio.h>
int isalnum(int c); |
Description:
The function returns nonzero if c is any of:
a b c d e
f g h i j k l
m n o p q r s
t u v w x y z
A B C D E F G H I
J K L M N O P Q R
S T U V W X Y Z
o 1 2 3 4 5 6 7
8 9 |
Return Value
The function returns nonzero if c is alphanumeric otherwise this will return
zero which will be equivalent to false.
Example
#include <stdio.h>
int main()
{
if( isalnum( ';' ) )
{
printf( "Character ; is not alphanumeric\n" );
}
if( isalnum( 'A' ) )
{
printf( "Character A is alphanumeric\n" );
}
return 0;
} |
It will produce following result:
| Character A is alphanumeric |
Have a Question ?
post your questions here. It
will be answered as soon as possible.
Check
C Aptitude Questions
for more C Aptitude Interview Questions with Answers
Check
C Interview Questions
for more C Interview Questions with Answers
|