true

Find the best tutors and institutes for C Language

Find Best C Language Classes

Please select a Category.

Please select a Locality.

No matching category found.

No matching Locality found.

Outside India?

Search for topics

C Language Updates

Ask a Question

Post a Lesson

All

All

Lessons

Discussion

Lesson Posted on 19 Mar IT Courses/Programming Languages/C Language

C for Begginers

Sonali Koranne

I have done an M.E in Software Engineering Specialization with 76.6%. I have sound knowledge and experience...

C is an procedure oriented programming language. For any begginer the word program is new. Program: Set of instructions to be followed by machine or computer. Instruction Examples: Arithmetic instruction like a=b+c; Semi colon here indicates end of instruction. Collecting different variety... read more

C is an procedure oriented programming language. For any begginer the word program is new.

 

Program: Set of instructions to be followed by machine or computer.

 

Instruction Examples: Arithmetic instruction like 

a=b+c;

 Semi colon here indicates end of instruction.

Collecting different variety of instructions into one name and executing it on machine. That one common name is noting but a procedure, function or method.

A C program can have n number of methods.

First sample program:

#include 
int main()
{
   // printf() displays the string inside quotation
   printf("Hello, World!");//printf is a predefined library function
   return 0;
}

First Line of program includes the header file . #include  is a preprocessor command. This command tells compiler to include the contents of stdio.h (standard input and output) file in the program.
Header files in C contaions predefined function definitions. Example: printf();

main(): Function that starts the execution of program.

int: here it is return type of main()
A function can return any type of value.Here main is returning int so last line of program
contains return statment having default int value 0.

 After compiling  this program we get the filename.obj file. Linker performs linking and at the end we get filename.exe. This exe file is an executable file which is finally executed.

 

 

read less
Comments
Dislike Bookmark

Lesson Posted on 10 Jan IT Courses/Programming Languages/C Language Tuition/BA Tuition/Programming Fundamentals using C++

Everything about printf in C language

Ganesh S.

Having 10+ years of working experience in C/C++/JAVA. I am hard core developer, working experience and...

What is printf and from where it comes from in C code.? You must have used printf so many times in your Car programs but do you really know everything about printf? Let's see. What is the full form of printf? Printf function name is made of two words 'Print format'. Here format means format specifiers... read more

What is printf and from where it comes from in C code.? 

You must have used printf so many times in your Car programs but do you really know everything about printf? Let's see. 

What is the full form of printf? 

Printf function name is made of two words 'Print format'. Here format means format specifiers like%d %f etc. 

Printf and scanf functions are actually included in your code by line #include header file. This file contents only header of standard IO functions and respective stdio.c file contains function definitions. 

How to print Hex, Oct and Decimal number formats? 

printf("%x", 10) ; this will print small 'a' on screen which is hex value of number 10.

printf("%X", 10) ; this will print capital A' on screen. 

printf("%#x", 10) ; this will print small '0xa' with prefix 0x on screen. 

printf("%o", 10) ; this will print '12' on screen which is octal value of number 10 

printf("%5d", 10) ; this will print 3 spaces and then number 10 on screen because right alignment given in format i.e. "%5d".

For left alignment use "%-5d" Negative number it will print 10 and then 3 spaces. 

What if you want a variable number of spaces instead of a constant number in format specifiers then use the star as below. 

int s = 5;

printf("%*d",  s, 10); this will give s number of spaces before printing number 10.

%g - is used to print float number without trialling zero. For example. 

printf("%g", 10.2); this will print only 10.2 and not like%f prints 10.200000 always 6 trialling zeros. 

 %p - is used to print pointer values. That means addresses which are hex values. 

%u - is used to print unsigned numbers that means positive numbers. 

%i and %d are equivalent. 

%c - is for character and%s is for word. 

There are also many escape sequence characters which are commonly used but not known to all are:

To print% sign use double%% to avoid conflict with format specifiers and the actual per cent sign. 

Example

printf("i got %d%% in practicals\n", 100) ; this will print I got 100% in practicals

Similarly, to print double quotes use \" . 

Example 

printf("I love \"C\" Language\n", 100) ; this will print I love "C" Language. 

To print backslash use double backslash \\

To bring back cursor to start of the line use \r and to backspace or delete previously printed char on-screen use \b.

Using above \r and \b we can really create loading or progress bar effect on screen because we can display on same line different text with time delay. 

for(I = 0; I <= 100; I ++) 

{

     printf("loading.... %d\r") ;

     // some delay... 

}

This will print loading..... 0 till 100 on same line. 

There are so many such things you must explore to know what printf can do, isn't it? 

 

read less
Comments
Dislike Bookmark

Answered on 25/06/2019 IT Courses/Programming Languages/C Language

Rajesh

IT developer with Experienced & skilled in AMI.

Hi, C structure is procedural programming. math.h and string .h will have a declerations of predefined methods. math.h ex: sqrt(),...etc. string.h ex: strlen(),strcpy,...etc. if you wanna brif let meknow. Thanks.
Answers 36 Comments
Dislike Bookmark

Looking for C Language Classes

Find best C Language Classes in your locality on UrbanPro.

FIND NOW

Answered on 23/02/2019 IT Courses/Programming Languages/C Language Tuition/BCA Tuition/C Language Programming IT Courses/Programming Languages/C++ Language/Advanced C++ +2 IT Courses/Programming Languages/C++ Language/Basic C++ IT Courses/Programming Languages/C++ Language less

How can I read and store a particular column from an Excel spreadsheet into an array using the C language?

Veera Krishna

Trainer

save the file in csv format. read the file char by char . as it is in comma seperated value format whenever your program detects comma in the string make the previous one as value and store in array and increment index of the array.
Answers 1 Comments
Dislike Bookmark

Answered on 23/02/2019 IT Courses/Programming Languages/C Language Tuition/BCA Tuition/C Language Programming IT Courses/Programming Languages/C++ Language/Advanced C++ +2 IT Courses/Programming Languages/C++ Language/Basic C++ IT Courses/Programming Languages/C++ Language less

Will we ever see the end of C/C++?

Veera Krishna

Trainer

can you imagine a p.c/smart phone without operating system. the end of c/c++ never happen they are ocean.. the core of any os will be bult using c/c++ only
Answers 1 Comments
Dislike Bookmark

Answered on 26/02/2019 IT Courses/Programming Languages/C Language IT Courses/Programming Languages/C++ Language/Advanced C++ Tuition/BCA Tuition/C Language Programming

What are the set of programs I need to practice in C to enhance my coding skills?

Respro Academy

You can try learning loops , array handling,functions, searching, sorting, Structures, File reading, writing programs.
Answers 1 Comments 1
Dislike Bookmark

Answered on 05/08/2017 IT Courses/Programming Languages/C Language

Prateek Mehta

Tutor

The best topics to learn would be Data structures and also the analysis of algorithms..(THESE ARE BASICS BUT IF U LEARN THEM PROPERLY!!! CODING WOULD BE A PIECE OF CAKE FOR U....)
Answers 9 Comments
Dislike Bookmark

Answered on 23 Mar IT Courses/Programming Languages/C Language

Apoorva P.

Lower order and higher-order bytes are the terms used while computing calculations in a programming language. Usually, numbers are written from left to right. The left is the most significant bit, and it is written first. For example, if we consider your paycheck, then you would be happier if the... read more

Lower order and higher-order bytes are the terms used while computing calculations in a programming language. Usually, numbers are written from left to right. The left is the most significant bit, and it is written first. 

 

For example, if we consider your paycheck, then you would be happier if the number the first digit increases instead of the last digit. This is what is referred to as "significance" of a digit. 

The bits present in computer memory are written usually with a base 2 (for binary, the base is considered as 2). So, the least significant bit is represented as one. The next bit is represented as two or 2'1 and the next one as 2'2'1 and so on..

 

For example, if we consider 2 bytes of memory, which represents a 16-bit number, then one byte will hold at least eight significant bits, and the other byte will hold the most significant 8 bits. 

The byte that contains the most significant 8 bits is called the higher-order byte and the one that contains the least significant bits is called the higher-order byte. 

 

read less
Answers 9 Comments
Dislike Bookmark

Answered on 24/07/2016 IT Courses/Programming Languages/C Language

Sharath Gajawada

Test Engineer

using ceil function. i.e. ceil(1.66)
Answers 6 Comments
Dislike Bookmark

Looking for C Language Classes

Find best C Language Classes in your locality on UrbanPro.

FIND NOW

Answered on 16 Mar IT Courses/Programming Languages/C Language

Charlie

The header file which is added to the program that one has written is basically what 'include stdio.h.' means. Stdio.h is known to contain the input and output operations like "printf" or "scanf" etc. "h" extension means the header file. If you request to use a header file in the program by actually... read more

The header file which is added to the program that one has written is basically what 'include stdio.h.' means. Stdio.h is known to contain the input and output operations like "printf" or "scanf" etc. "h" extension means the header file.

If you request to use a header file in the program by actually including it with the preprocessed C directive #include like you have seen the inclusion of stdio.h header file, which comes along with the compiler you are using.

If the header file is equal to that of copying the header file, it is advised not to do it because it would be inevitable to get an error and it's, of course, a bad idea to copy the content of the header file into its designated source files, as in if at all one has multiple source files in a written program.


In layman's terms, It's effortless .#include is what is known as a "preprocessor". As the name suggests, it is preprocessed before the code. These preprocessor statements are compiled before any other code in your script.
Hope this helps

read less
Answers 54 Comments
Dislike Bookmark

About UrbanPro

UrbanPro.com helps you to connect with the best C Language Classes in India. Post Your Requirement today and get connected.

Overview

Questions 1.2 k

Lessons 85

Total Shares  

+ Follow 83,426 Followers

Top Contributors

Connect with Expert Tutors & Institutes for C Language

x

Ask a Question

Please enter your Question

Please select a Tag

X

Looking for C Language Classes?

Find best tutors for C Language Classes by posting a requirement.

  • Post a learning requirement
  • Get customized responses
  • Compare and select the best

Looking for C Language Classes?

Find best C Language Classes in your locality on UrbanPro

Post your learning requirement

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 25 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 6.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more