# String concatenation

**URL:** <https://verificationacademy.com/forums/t/string-concatenation/41527>\
**Category:** SystemVerilog\
**Tags:** string-concatenation, SystemVerilog\
**Created:** [April 15, 2023, 7:29am UTC](https://verificationacademy.com/forums/t/string-concatenation/41527 "2023-04-15T07:29:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jianfeng.he](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/e47774/32.png) [@jianfeng.he](https://verificationacademy.com/forums/u/jianfeng.he)\
**Post date:** [April 16, 2023, 3:40pm UTC](https://verificationacademy.com/forums/t/string-concatenation/41527/4 "2023-04-16T15:40:44Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/string-concatenation/41527/3):_

> _In reply to [sbellock](https://verificationacademy.com/forums/t/string-concatenation/41527/3):_  
> In the second concatenation, all its operands are integral types, so the result is integral. But you cannot assign an integral type to a string type without a cast.

Let me understand, are you saying that in comb2, the concatenation operator {} will treat “hello” and other strings as integers, resulting in an integer output? If we want to assign it to a string type comb2, we need to convert it using string’(). Is that correct?

---

_[View the full topic](https://verificationacademy.com/forums/t/string-concatenation/41527)._
