[ create a new paste ] login | about

Link: http://codepad.org/yJvvONGZ    [ raw code | output | fork ]

C, pasted on Apr 22:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(){
  char aaa[35] = "1.25";
  char* bbb = &(aaa[0]);
  char** ccc = &(bbb);
  float a = strtof(*ccc, ccc);
  printf("%f\n", a);
  return 0;
}


Output:
1
2097152.000000


Create a new paste based on this one


Comments: