---
title: "getArgumentTypeAtIndex:"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsmethodsignature/getargumenttypeatindex:"
---

# getArgumentTypeAtIndex:

Returns the type encoding for the argument at a given index.

## Declaration

```occ
- (const char *) getArgumentTypeAtIndex:(NSUInteger) idx;
```

## Parameters

- `idx`: The index of the argument to get.

## Return Value

Return Value The type encoding for the argument at idx.

## Discussion

Discussion Indexes begin with 0. The implicit arguments self (of type id) and _cmd (of type SEL) are at indexes 0 and 1; explicit arguments begin at index 2. important: If index exceeds the number of arguments, NSInvalidArgumentException is raised.

## See Also

### Getting Information on Argument Types

- [numberOfArguments](foundation/nsmethodsignature/numberofarguments.md)
- [frameLength](foundation/nsmethodsignature/framelength.md)
