c - C 中 ")"标记之前的错误预期表达式

标签 c

我正在尝试编写此程序以返回非正规值,但我收到如下所示的错误。谁能帮我解决这个错误:

support.c: In function 'is_denormal':
support.c:50:34: error: expected expression before ')' token

在这段代码中:

#include <stdio.h>
#include <stdlib.h>
int is_denormal( double x)
{

   union dp_item N1;   
   N1.drep = x;

   union dp_item N2;
   N2.drep = x;



   N1.irep = absolute(N1.drep, x*);
   N1.irep = N1.irep >> 52;
   if (N1.irep == 0x0ULL)
   {

      N2.irep = N2.irep << 12;
      if (N2.irep != 0x0ULL)
      {return 1;}
      return 0;

   }
   else {return 0;}


}

这是绝对函数:

double absolute( double x, double y* )
{
   union dp_item N;   
   N.drep = x;

   N.irep = N.irep & 0x7FFFFFFFFFFFFFFFULL;
   return N.drep;
}

谢谢

最佳答案

这一行:

N1.irep = absolute(N1.drep, x*);

语法无效。 * 是做什么用的?

关于c - C 中 ")"标记之前的错误预期表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19921169/

相关文章:

c - C语言中如何从字符串中获取单个单词?

c - Apache C 模块创建,连接 SQLite 的问题

c - 重新分配不执行

c - 在 C 中跟踪任务的执行时间(忽略时间任务被挂起)

c - 为什么在结构数组中使用字符元素会出现运行时错误

c++ - C 中正确的指针算法

c - C 中的递归函数(打印金字塔#)

C UNIX 多进程间信号量同步

android - Android NDK 上可用的库?

c - 为什么这个函数会导致段错误?