-3

I have some code that I have to study and I'm not understanding what is a unsigned int and how it works.

void print_all_sums(unsigned int n,double a[n])
{ // 1 <= n <= 30
   unsigned int i,j,mask;
   double s;

Something like this.

erdnaxela
  • 1
  • 1

1 Answers1

-1

An unsigned int in C is a data type which has a non-negative value. (Eg. 0,1,2,3,4...)

Weather Vane
  • 33,872
  • 7
  • 36
  • 56
Nacev
  • 144
  • 8