What does "," (comma) mean in C programming? What context is a comma used in C?

Asked by Last Modified  

Follow 3
Answer

Please enter your answer

International Corporate Trainer For dotnet Core ,Angular 2 ,C ,C++ and LPT Marathi for RBI Banking

comma operator is used to carry two for loops at a time ex: for(i=1,j=10;i<=10;i++,j--) {printf("i= %d,j=%d\n",i,j); } i is increasing at the same time j is decreasing in same number of steps therefore condition for i is only checked , it implies to j as wel.
Comments

Computer Science Tutor

In C , comma is a operator. it is used to link the related expression together. It is evaluted from left to right. For example: v=(a=2,b=3, a+b); here 2 is assigned to a, then assign 3 to b and finally 5 is assigned to v.
Comments

Related Questions

How do I send a C program via email?
upload your file in gdrive then use that link you can easily email that program
Furqankhan
0 0
5
How can I learn C easily and rapidly?
Practise as much as you can. Skill in programming comes mainly from experience.
Umamahesh
0 0
5
How do I write code in C programming that will invert a string like "Welcome to programming" to “gnimmargorp ot emocleW”?
void main() { char msg = "Welcome to Programming"; char str; int i = 0, j = 0; clrscr(); while (msg != '\0') { if (msg != ' ') { str = msg; j++; ...
Mukul
Is it necessary to mention the header files in the C programming language?
It is absolutely necessary as without inclusion of the same to your program, will lead to the absence of library functions that are present in the header files, your program will have a syntax error.
Hari
Why is C programming language called C?
The C programming language is named "C" because it was developed as a successor to an earlier programming language called "B." B was created by Ken Thompson at Bell Labs in the early 1970s, primarily for...
Ashwini
0 0
6

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons


Why we need to learn Programming languages?
Language is medium for communication. If two parties like to communicate or exchange the thoughts they must know a language. Language should be understandable by both the Parties. For example A wants to...

C Program-Error Handling[Program Exit Status]
//Header files #include<stdio.h>#include<conio.h>#include<stdlib.h> //Main Function void main(){ int dividend=20; int divisor=5; int quotient; //Function for clearing screen clrscr();...

Functions In C Programming
A C-language program is nothing but collection of Function, these are the building blocks of a ‘C’ program. Generally, a function mans a task. “Function is a...

What is a Programming Language
What is a Language? Language is a communication system of human. What is a programming Language? A programming Language is a formal constructed language design to communicate...

Recommended Articles

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you