answersLogoWhite

0

In C, the most important rules are:

  • The declaration of a variable must precede its first usage.
  • When you declare a variable, its type must be already defined
  • When in a function, declarations can only be at the beginning of a block, before executable statements.
  • It should not start with any number.
  • Only underscore(_) symbol used in decalaration.
User Avatar

Wiki User

∙ 15y ago
User Avatar

What else can I help you with?

Related Questions

How do you declare local and global variables in pseudo code?

Pseudocode is not a programming language (it's specifically intended for human interpretation), so there is no need to declare variables, you simply define them as and when you require them. For instance: Let x = 42 Let y = x * 2


Why is pseudo code called false code?

Pseudo code cannot be processed by a machine, it is solely intended for processing by humans.


Does HTML allow you to declare integer real string and boolean variables?

HTML is not a programming language and as such does not allow you to declare variables.


What do you mean by implicit and explicit variables declaration in visual basic?

implicit means you must declare variables before using them while explicit is not a must you declare variables before using them


How does pseudo code operate?

It doesn't. Pseudo code isn't a programming language, it is just there to give an idea of how you could write a program.


Is there an absolute 'right' and 'wrong' way of writing pseudo code?

No. There is no "right way" and "wrong way" of writing pseudo code, let alone qualifying with "absolute". However, a pseudo code is "wrong" if it cannot be understood, or it is incorrect in semantic (what the code tries to describe, solve, etc)


What is the basic Difference between flow chart and pseudo-code?

what's the difference between flow chart and structure diagrams and pseudo code


What are the pseudocode keywords for loop?

Pseudo code does not have key words, you make it up, that's why it is pseudo.


What is pseudo code algorithm for create a linked list with a header and insert a four numbers to the list?

pseudo code algorithm to create a linked list


How can i write pseudo code for C plus plus if i haven't even wrote the program yet?

You are going about this backwards. First, define the program. Second, describe its algorithm. Third, if needed, write pseudo code. (Sometime, algorithm and pseudo code is the same process.) Fourth, or third, write real code.


What is the difference of source code object code and pseudo code?

Source code is a sequence of executable instructions written in a particular language. Pseudo code is a sequence of non-executable instructions. It is also called algorithm written in plain English


What is pseudo code in c?

Writing in pseudo code means writing in a natural language, not in any specific programming language, so there is no thing as "pseudo-code used in C" as opposed to "pseudo-code used in Java".When you write in pseudo-code, you don't have to follow any specific syntactic rules, just to describe the steps you will use in your algorithm.For example, pseudo-code for bubble sort (taken from wikipedia):procedure bubbleSort( A : list of sortable items ) do swapped = false for each i in 1 tolength(A) - 1 inclusive do: if A[i-1] > A[i] then swap( A[i-1], A[i] ) swapped = true end ifend for while swapped end procedureIt is not written in any programming language, but it should be easy to implement this in any language after you understand the idea from the pseudo-code.

Trending Questions
Why is mainframe used in programs? An investor's goal can be described best as? Can the voltage be adjusted on an HP laptop charger PPP017H 18.5v 6.5a power supply. To be used for a different application. I need to get the voltage down to 15 - 16 volts.? How much does it cost to build and maintain a power plant for generating electricity with solar energy? What is parent class in java? What is DRS in vmware? How do you join to nasa space agency i m an electrical engineer? What is asphalt concrete type 1 surface course and asphalt concrete type 2 intermediate course and asphalt concrete base and tack coating between courses? Does the charge that flows into the capacitor during the charging process go all the way through the capacitor and back to the battery's or does it get stored somewhere in the capacitor? Is the 3 phase connection has a live and neutral? What are the methods used to minimize the average flowtimes of tasks? Biggest buildings in ancient Egypt triangle sides and square bottoms? How does on load tap changers operate? What involves evaluating the possible problems or risks of a technology compared to the expected advantages? Who invented production in great amounts? What are the causes of failure of self excited generator? How can you use the word doable in a sentence? When were AC-119K gunships stationed at NKP? Give the program for finding smallest number in 8085 microprocessor? What are the purpose of a design specification when designing and manufacturing a product?