source of highlighter
plain | download
    1 // kompilacia: gcc -o priklad3 priklad3.c
    2 
    3 #include <stdio.h>
    4 #include <stdlib.h>
    5 
    6 int main (int argc, char ** argv) {
    7         float f;
    8         char * s;
    9         int len;
   10 
   11         printf("zadajte cislo:");
   12         scanf("%f", &f);
   13         
   14         printf("zadajte retazec:");
   15         scanf("%as", &s);
   16 
   17         printf("zadali ste cislo %f a retazec \"%s\"\n\n", f, s);
   18 
   19         free(s);
   20 
   21         exit(EXIT_SUCCESS);
   22 }