Where does output go when running the C program with the DE2? [closed]

StackOverflow https://stackoverflow.com/questions/19077679

  •  29-06-2022
  •  | 
  •  

سؤال

When I run this program in the Nios 2 simulator I get the expected output (1.000000).

#include <stdio.h>
int main ()
{
  float  n=0; 
  printf("%f\n", ++n);
  return 0;
}

But when I run the program on the board it doesn't output anything at all in the IDE console. Where does output go? Isn't output supposed to display in the IDE console?

هل كانت مفيدة؟

المحلول

Declare n as

float  n=0.0f;  

it will work.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top