Top "Syntax" questions

Syntax refers to the actual language elements and symbols themselves.

Syntax of for-loop in SQL Server

What is the syntax of a for loop in TSQL?

sql sql-server loops tsql syntax
How do you pass a function as a parameter in C?

I want to create a function that performs a function passed by parameter on a set of data. How do …

c function pointers syntax parameters
What is the difference between '/' and '//' when used for division?

Is there a benefit to using one over the other? In Python 2, they both seem to return the same results: &…

python math syntax operators floor-division
Comments in Markdown

What is the syntax for storing a comment in a markdown file, e.g. a CVS $Id$ comment at the …

syntax comments markdown
How to make "if not true condition"?

I would like to have the echo command executed when cat /etc/passwd | grep "sysa" is not true. What am …

bash if-statement syntax boolean-expression
Arrow operator (->) usage in C

I am reading a book called "Teach Yourself C in 21 Days" (I have already learned Java and C# so I …

c pointers syntax
How to escape single quotes within single quoted strings

Let's say, you have a Bash alias like: alias rxvt='urxvt' which works fine. However: alias rxvt='urxvt -fg '#111111…

bash syntax quoting
How do you create a static class in C++?

How do you create a static class in C++? I should be able to do something like: cout << "…

c++ oop class syntax static
How can I split a shell command over multiple lines when using an IF statement?

How can I split a command over multiple lines in the shell, when the command is part of an if …

syntax sh
How do I modify a MySQL column to allow NULL?

MySQL 5.0.45 What is the syntax to alter a table to allow a column to be null, alternately what's wrong with …

mysql syntax