2 Replies - 303 Views - Last Post: 13 March 2017 - 05:17 AM

#1 tuankeezee  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 08-September 08

invisible type ? Have anyone thought about this?

Posted 12 March 2017 - 03:12 PM

15 minutes ago, I've thought about this topic of invisible types or actual functions. I wonder if anyone have thought about this or
have it come up yet? check out the following code and if it hasn't come up, hope every programming feel free to provide feedback and programming technique which can improve on this. Thanks.



int main()
{

int i = NULL;

int array[3] = {1, 2, i};

return 0;
}


you can assume the i is invisible. Thanks. feel free. :)

-Tuan

Is This A Good Question/Topic? 0
  • +

Replies To: invisible type ? Have anyone thought about this?

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 13389
  • View blog
  • Posts: 53,429
  • Joined: 12-June 08

Re: invisible type ? Have anyone thought about this?

Posted 12 March 2017 - 03:28 PM

Why would i be invisible? What is 'invisible' mean in this case?
Was This Post Helpful? 1
  • +
  • -

#3 astonecipher  Icon User is offline

  • Too busy for this
  • member icon

Reputation: 2329
  • View blog
  • Posts: 9,356
  • Joined: 03-December 12

Re: invisible type ? Have anyone thought about this?

Posted 13 March 2017 - 05:17 AM

Why is this in Share your Project?

OP do you understand what you are doing? Adding a null value to an array is kinda pointless and the code shown does almost nothing. So, if that was what you were going for, you did it!!!
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1