首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

诺西的笔试题程序,请大家看看有什么有关问题。

2013-04-20 
诺西的笔试题程序,,,请大家看看有什么问题。。。6. The following codes calculate the dot product of A and

诺西的笔试题程序,,,请大家看看有什么问题。。。
6. The following codes calculate the dot product of A and B and save the result to Res. Please point out the possible problems of the codes(10 points)

int DotProduct(const short *A,int sizeA,const short *B int sizeB, const short *Res)
{
  int I;/* loop counters*/
  
  for(i=0;i<sizeA;i++)
{
  *Res =  (*A++) * (*B++);
}
}

热点排行