Search
 
SCRIPT & CODE EXAMPLE
 

C

text to hex in C

#include <stdio.h>

#define SIZE 32

int main()
{
    char string[SIZE];
    int i = 0;

    printf("Text to translate: ");
    fgets(string,SIZE,stdin);
    while(string[i] != '
')
    {
        printf("%2x ",string[i]);
        i++;
    }
    putchar(string[i]);

    return(0);
}
Comment

PREVIOUS NEXT
Code Example
C :: input value from terminal to c 
C :: Program to print all palindromes in a given range 
C :: print in c 
C :: sqrt function in c 
C :: getline function in c 
C :: time include c 
C :: Compile multiple C files 
C :: c malloc array 
C :: fifo in c 
C :: windows make clean 
C :: c programming programiz 
C :: how to input a string into a char array cpp 
C :: example of source file 
C :: C/AL Convertion of Decimal to String/Text 
C :: largest value in u64 
C :: Syntax for creating a node 
C :: C Keyword typedef 
C :: What does x = (a<b)? A:b mean in C programming? 
C :: npm fs zip 
C :: Greatest common divisor iterative 
C :: BSTNode root 
C :: c disable struct padding 
C :: convert c code to c online 
C :: c joystick arduino 
C :: How to scale all columns in dataframe in R- Method 2? 
C :: how to make random string in c 
C :: how to reset to read from beginning of file c 
C :: sdl_rect 
C :: sort linked list c 
C :: c program for determining a character is alphabet or not 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =