Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7605899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:16:59+00:00 2026-05-31T00:16:59+00:00

Can anyone explain to me how to create a variable (in c), assign a

  • 0

Can anyone explain to me how to create a variable (in c), assign a Unicode character to that variable, and then print that variable. I am probably missing something here,but I can’t work it out. Also, is there any way I can include variables in a variable name?

int ttt x;
x=1;
tttx==ttt1;

I know that that code is terrible, but what should I do, as this does not seem to be the way to go about it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T00:16:59+00:00Added an answer on May 31, 2026 at 12:16 am

    To answer the second question first: No, there is no way you can include variables in the name of another variable. If you need a flexible mapping from names to values, a hash map would work well. If you can switch to C++, you can use std::unordered_map<> for that. If you need to stick to C, you should find a library that implements hash maps and link with that. It’s easy to find numerous examples on Google, and there also several SO (Stackoverflow) questions related to that.

    As for the main question: If you know the Unicode code point of the character you want to print, best assign that to an int32_t and then convert it to the desired encoding.

    There are various encodings for Unicode, the most widely used is UTF-8. If that is what you want, the conversion from a plain int32_t to a UTF-8 char sequence is the same as a conversion frm UCS-4 to UTF-8. There are plenty libraries available that provide functions for this conversion. For a quick overview, see here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

does anyone knows any good resources and articles that can explain how to create
mvn -DgroupId=org.epseelon.samples -DartifactId=todolist archetype:create Can anyone explain me the command here. What is DgroupID?
Assuming self.tableView is a UITableView instance variable that I created, can anyone explain the
Can anyone explain to me how to create a uninstall command for a Windows-based
Can anyone explain why it's not possible to create your own view controller hierarchies
Can anyone explain me how does Apache Solr works. I know how to create
Can anyone explain what this mod_rewrite rule is doing? I'm trying to comment the
Can anyone explain what advantages there are to using a tool like MSBuild (or
Can anyone explain why following code won't compile? At least on g++ 4.2.4. And
Can anyone explain in simple words what First and Second Level caching in Hibernate/NHibernate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.