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

  • SEARCH
  • Home
  • 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 8110025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:36:22+00:00 2026-06-06T01:36:22+00:00

Purely from curiousity – why it’s impossible to name the variable c? For example…

  • 0

Purely from curiousity – why it’s impossible to name the variable “c”? For example…

.386
.model  flat, stdcall
option  casemap:none

include windows.inc
include kernel32.inc
include user32.inc

includelib user32.lib
includelib kernel32.lib

Main        proto

.data

hOutput dd 0
hInput dd 0

bReadWritten dd 0
szText db "Program calculates the roots of the quadratic expression ax^2+bx+c",10,"Enter a",0 

a dd 0
b dd 0 
c dd 0

delta dd 0

szInput db 128 dup(0)



.data?

.code
start:

Invoke Main
Invoke ExitProcess,0

Main proc
    invoke GetStdHandle, STD_OUTPUT_HANDLE
    mov hOutput, eax

    invoke GetStdHandle,STD_INPUT_HANDLE
    mov hInput, eax

    invoke lstrlen, addr szText
    invoke WriteFile, hOutput, addr szText, eax, ADDR bReadWritten, NULL

    invoke ReadFile, hInput, a, eax,addr bReadWritten, NULL 
    invoke ReadFile, hInput, b, eax,addr bReadWritten, NULL 
    invoke ReadFile, hInput, c, eax,addr bReadWritten, NULL 

    invoke Sleep,10000

    ret
Main endp   


end start

… this causes an assembling-time error

C:\3-rd party programs\winASM\WinAsm\Projects\quadratic equation\EXE.asm(24) : error A2008: syntax error : c
C:\3-rd party programs\winASM\WinAsm\Projects\quadratic equation\EXE.asm(52) : error A2008: syntax error : c

When I rename it, everything assemblies and runs 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-06-06T01:36:23+00:00Added an answer on June 6, 2026 at 1:36 am

    Try naming your variable PASCAL, FORTRAN, BASIC, SYSCALL or STDCALL. I believe, you’ll get the same error.
    They’re all keywords that specify calling conventions for procedures should you happen to use those written in the aforementioned languages. The valid usage of C keyword would be like funcname PROTO C arguments...

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

Sidebar

Related Questions

Is it possible to open a powerpoint presentation from a file purely in memory?
I'm asking this question purely from an ease-of-development standpoint. Performance is not a consideration,
Though I come from a purely PHP background on the web development side of
As a purely academic exercise, I'm writing a recursive descent parser from scratch --
Comming from a purely Win32/Delphi background I am somewhat puzzled by my new Mac-centric
All, Need some help here. I am from a purely Java background and don't
As the title says... I'm creating a template purely from code, ie without using
I'm asking this question purely from a usability standpoint ! Should a website expand/stretch
Is it possible to create a Class object purely from a generic parameter? For
I naively implemented the trie from Okasaki's book Purely Functional Data Structures in Clojure.

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.