© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
13 replies
Dankh917

✅ Q about the "?" symbol when declaring vars

Hello everybody ,I have seen some c# vidoes where people declare variables with "?", for example "int?","bool?" , I have asked copilot what does it mean and he said that its just "normal variables" but they are special in that they can also store Null .

my question is : how accurate is his answer and in what case/context will I use :"type?" instead of "type"

thanks
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Purpose of '?' key when declaring certain fields.
C#CC# / help
3y ago
whats the symbol for power of?
C#CC# / help
3y ago
✅ NullReferenceException when declaring an array but not initializing it
C#CC# / help
13mo ago
Declaring methods with `in` parameters
C#CC# / help
14mo ago