zoukankan      html  css  js  c++  java
  • DSP 平台数据类型的宽度 及与windos的区别

    #include <stdio.h>

    main()
    {
    printf("下面输出DSP数据类型的长度/n");
    printf("int type length=%d/n",sizeof(int));
    printf("float type length=%d/n",sizeof(float));
    printf("char type length=%d/n",sizeof(char));
    printf("short type length=%d/n",sizeof(short));
    printf("long type length=%d/n",sizeof(long));
    printf("double type length=%d/n",sizeof(double));
    }
    输出结果如下:
    下面输出DSP 数据类型的长度
    int type length=4
    float type length=4
    char type length=1
    short type length=2
    long type length=8
    double type length=8
    //////////////////////////////////
    windows 平台的结果
    int type length=4
    float type length=4
    char type length=1
    short type length=2
    long type length=4
    double type length=8
    _int64 type length=8
    Press any key to continue
    在windows 平台里边存在一种很特殊的类型
    long long 和_int64 8个字节
     
  • 相关阅读:
    Sqlite教程(1) SQLiteOpenHelper
    检查网络连接状态。
    GSON解译Json为DTO
    Okhttp教程 (1)
    HashMap的扩容算法
    回溯算法
    动态规划
    实现自旋锁
    Java堆
    垃圾回收算法总结
  • 原文地址:https://www.cnblogs.com/rainbowzc/p/2422304.html
Copyright © 2011-2022 走看看