# \#const

**URL:** https://forums.digi.com/tag/const/1208.md

[Latest](https://forums.digi.com/latest.md) · [Categories](https://forums.digi.com/categories.md) · [Tags](https://forums.digi.com/tags.md)

---

## [Strange error: "Duplicate 'const' keywords not allowed in this context."](https://forums.digi.com/t/strange-error-duplicate-const-keywords-not-allowed-in-this-context/12678)

<div class="topic-metadata">

**Author:** [@tito.brasolin](https://forums.digi.com/u/tito.brasolin)\
**Replies:** 3\
**Last updated:** [January 20, 2016, 2:49pm UTC](https://forums.digi.com/t/strange-error-duplicate-const-keywords-not-allowed-in-this-context/12678 "2016-01-20T14:49:15Z")

</div>

Dynamic C has no problem with the following function prototype: void my\_function(const int \*a, const int b); On the contrary, this (almost identical) one gives a compilation error: void my\_function(const int a, const in…
