Find the best tutors and institutes for C Language
Search for topics
Lesson Posted on 03/08/2020 IT Courses/Programming Languages/C Language Tuition/BCA Tuition/C Language Programming Tuition/BTech Tuition/BTech Computer Science Engineering
Manoj Singh
Professional Trainer with 12 Years Experience in IT Training. Currently taking class For Python, MS-Office,...
C programming language was developed in 1972 by Dennis Ritchie at AT&T Bell Labs.
It was developed to overcome the problems of languages such as B, BPCL.
It was developed to write the Unix operating system. The Unix OS was written entirely in C.
The language was formalized in 1988 by ANSI.
C is the most widely used and popular system programming language.
Microsoft's Windows kernel is mostly written in C language.
Linux OS is also written in C language, with some parts in Assembly.
Mac computers are also powered by C.
The world's most popular databases, including Oracle, MySQL, PostgreSQL, SQL Server are coded in C and C++.
read lessLesson Posted on 19/03/2020 IT Courses/Programming Languages/C Language
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 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
Lesson Posted on 21/01/2020 Tuition/BSc Tuition/Computer Programming in C Tuition/Engineering Diploma Tuition/Computer Programming IT Courses/Programming Languages/C Language
Om
C PROGRAMMING BASICS 10 Hours
Introduction to ‘ C’ programming –fundamentals – structure of a ‘C’ program – compilation and linking processes – Constants, Variables – Data Types –Expressions using operators in ‘C’ – Managing Input and Output operations – Decision Making and Branching – Looping statements – solving simple scientific and statistical problems.
read less
Looking for C Language Classes
Find best C Language Classes in your locality on UrbanPro.
Lesson Posted on 10/01/2020 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 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
Answered on 25/06/2019 IT Courses/Programming Languages/C Language
Rajesh
IT developer with Experienced & skilled in AMI.
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++
Veera Krishna
Trainer
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++
Veera Krishna
Trainer
Answered on 05/08/2017 IT Courses/Programming Languages/C Language
Prateek Mehta
Tutor
Answered on 23/03/2020 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 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
Looking for C Language Classes
Find best C Language Classes in your locality on UrbanPro.
Answered on 24/07/2016 IT Courses/Programming Languages/C Language
Sharath Gajawada
Test Engineer
UrbanPro.com helps you to connect with the best C Language Classes in India. Post Your Requirement today and get connected.
Ask a Question
Find best tutors for C Language Classes by posting a requirement.
Find best C Language Classes in your locality on UrbanPro
Post your learning requirement