The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

CLAD2017 - Fundamentals - Why do you have to be so negative

Member

What is Numeric Value Out following execution of the VI?

 

Index Array Negative.png

 

a) -1

b) 0

c) 9

d) NaN

Combined.png

Comments
Member

Here the answer is C,

what ever the negative index value we are giving it is going to take the"Index 0" nearest to any negative index.

Knight of NI

C

The negative index will just return the default for the data type (0 for numerics).  And it will just increment from there, so the second index will actually be index 0, giving 9.


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

The discussions from the Advanced User Track is not over. Join in the conversation: 2016 Advanced Users Track
Member

C

Member

C

Active Participant

C

Member

C

Member

C, what they said above.