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 4110750
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:58:28+00:00 2026-05-20T21:58:28+00:00

Here’s a question I got in an exam today: In C, suppose the pointers

  • 0

Here’s a question I got in an exam today:

In C, suppose the pointers are strictly typed (ie, a pointer to an int cannot be used to point to a char). Does this reduce its expressive power? If no, why and how would you compensate for this limitation? If yes, how? And what more constructs would you have to add to “equalize” the loss of expressive power of C?

Some additional details:

  • By reduced expressive power, I think it means this: you will not be able to create certain programs that you could earlier.
  • Strictly typed pointers means you cannot do something like: int x = 5; int *p = &x; char *temp = (char*)p;
  • This includes (void*) conversions

I’ve included my answer below as well.

  • 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-20T21:58:29+00:00Added an answer on May 20, 2026 at 9:58 pm

    Does that also mean no more void*? If so, then yes: C’s expressiveness would be limited, as malloc would be impossible to implement. You’d need to add a new, typed, free store allocation mechanism in the spirit of C++ new.

    (Or, no: C would still be Turing-complete. But I don’t think that’s what’s meant here.)

    Actually, C isn’t even Turing-complete; see comments below.

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

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
here's what I've got so far - i really need to ban any tags
I used javascript for loading a picture on my website depending on which small
Here's a basic regex technique that I've never managed to remember. Let's say I'm
here is my problem: I have a jList and a popup menu. When I
here's the code: #include <string> class Config { public: static const std::string asdf =
Here's my simple first attempt at a python extension using boost. Can someone help
Here is an excerpt from Mixed Effects Models in S and S-Plus page 238
Here is a snippet of my JavaScript Code that I want to DRY up:
Here's my scenario: $foo = bar; one() { two() { three() { // need

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.