answersLogoWhite

0

What is an example of a syntax?

Updated: 8/10/2023
User Avatar

Wiki User

13y ago

Best Answer

The way an author chooses to join words into phrases, clauses, and sentences. Syntax is similar to diction, but you can differentiate them by thinking of syntax as the groups of words, while diction refers to the individual words.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago
Code example:char cInput = getchar(); switch(cInput) { case 'a': printf("You entered a.\n"); break; case 'b': printf("You entered b.\n"); break; case 'c': printf("You entered c.\n"); break; default: printf("You didn't enter a, b or c.\n"); break; }
This answer is:
User Avatar

User Avatar

Wiki User

15y ago

Syntax is the structure of a language. Example: int variable = 7; The above is a C/C++ statement that declares a variable of type integer and initializes it to 7.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

The man carries the Lady. vs. The Lady carries the man.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an example of a syntax?
Write your answer...
Submit
Still have questions?
magnify glass
imp