# Set operand type

```
 Action    name: SetOpType
 
```

This command allows you to specify the type of the operand under the cursor.

The operand type must be entered as a C declaration. Currently IDA itself does not use the operand type information. However, it can be used by the Hex-Rays decompiler plugin. Setting operand type is most useful in case of indirect calls: the decompiler will use the type information to determine the input parameters to the call instead of guessing, which can make the decompiled code better.

An example of a type declaration:

```
        int (*func)(int param1, char param2);
```

To delete a type declaration, enter an empty string.

For details on possible calling conventions, see [Set function/item type...](/8.4/user-guide/user-interface/menu-bar/edit/functions.md#set-functionitem-type) menu item description.

See also [Set function/item type...](/8.4/user-guide/user-interface/menu-bar/edit/functions.md#set-functionitem-type)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hex-rays.com/8.4/user-guide/user-interface/menu-bar/edit/operand-types/set-operand-type.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
