Search
 
SCRIPT & CODE EXAMPLE
 

C

c string is int

int isNumber(char s[])
{
    for (int i = 0; s[i]!= ''; i++)
    {
        if (isdigit(s[i]) == 0)
              return 0;
    }
    return 1;
}
Comment

c check if character is a digit

char ch = '1';
if(isdigit(ch))
  printf("numeric");     
else
    printf("alphabet" );
 // output: numeric
CCopy
Comment

PREVIOUS NEXT
Code Example
C :: python project script run 
C :: injection 
C :: c programming print pattern pyramid 
C :: convert char to int ascii in c function 
C :: c "hello world" 
C :: suma de digitos 
C :: reverse binary tree c 
C :: Trier lexicographiquement en c 
C :: cut first part of string c 
C :: function that reverses the content of an array of integers. 
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 :: Example of header file c 
C :: how to devowel string in c program 
C :: buildCheckFunction(locations) 
C :: How to get the number of characters in a string without using strlen function 
C :: To get file info 
C :: take array input from user and calc the avr in c 
C :: float 
C :: linked list in c 
C :: pre and post increment in c 
Dart :: round corner of alertdialog flutter 
Dart :: text overflow ellipsis flutter 
Dart :: flutter datetime to string 
Dart :: canonical tag 
Dart :: how to stop screen rotation in flutter 
Dart :: setting backgroundColor for snack bar does not change background color 
Dart :: how to use hexadecimal color in flutter 
Dart :: text field placeholder color flutter theme 
Dart :: how to replace commas in model array of strings in dart 
Dart :: flutter delay a function 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =