UrbanPro

Learn C Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Give the structure of 'C' programming. Also, give significance of math.h and string.h header files.

Asked by Last Modified  

Follow 6
Answer

Please enter your answer

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.
Comments

Software Engineer in MNC, Passionate Techie

The basic structure of a C program is : Preprocessor directives to include libraries required for execution of the program Declaration of global variables and macros main() function{ code ; } other function definitions
read more
The basic structure of a C program is : Preprocessor directives to include libraries required for execution of the program Declaration of global variables and macros main() function{ code ; } other function definitions read less
Comments

Tutor

Math.h is a header file that contains all the math related functions like finding square root, absolute values etc. While string.h is a header file which contains all functions to perform string related operation
Comments

Mentor , Career Guide, Counsellor , and IT Trainer, NIELIT, HRD Ministry, Govt. of India

General form of c program is... Global declarationsint main(parameter list){statement sequence}return-type f1(parameter list){statement sequence}return-type f2(parameter list){statement sequence}...return-type fN(parameter list){statement sequence} This form is mainly concerned with Functions and Declarations. Significance...
read more
General form of c program is... Global declarationsint main(parameter list){statement sequence}return-type f1(parameter list){statement sequence}return-type f2(parameter list){statement sequence}...return-type fN(parameter list){statement sequence} This form is mainly concerned with Functions and Declarations. Significance of math.h file math.h header files drives hundreds of maths functions along with one macro. This header file returns result as double and takes double as an argument. Significance of string.h file string.h header file drives string related functions . This header file defines any one variable type, one macro, and number of functions. Basically header file contains Declarations, Definitions, and Macro of related number of functions which is defined in that particular header file. Thanks Regards Mahesh v Kondawar read less
Comments

Computer Science Faculty with academic and corporate experience

Hello IshwariWe know we have already defined data types like int, char, float, double.Let's take intWhen we declare int i ;It simply means an area of 2 Bytes(architecture dependent) gets allocated and the area is named as i and as our houses get some address in a street, in the same manner, this area...
read more
Hello IshwariWe know we have already defined data types like int, char, float, double.Let's take intWhen we declare int i ;It simply means an area of 2 Bytes(architecture dependent) gets allocated and the area is named as i and as our houses get some address in a street, in the same manner, this area will also have an address.Now if we want some area which must contain say some 5 Bytes and that area has to be divided into 3 areas.we want to give the first division to an int , the 2nd division to a char, the 3rd division to another int.So this type of data type is not already defined.So we need to make a data type like this on our own. How to do that?We use structure.struct datatype{ int i; char c; int j;};Now if we declaredatatype x;Then x will have our desired memory allocation.Math.hhas function definitions of the mathematical functions that we use.example : pow()Similarly, string.h has functions that we use t manipulate strings. read less
Comments

Documentation Section Link section Definition section Global Declaration Section Main() function section { Declaration part Executable part } Sub program section
read more
Documentation Section Link section Definition section Global Declaration Section Main() function section { Declaration part Executable part } Sub program section read less
Comments

Tutor

#include<stdio.h> //header file main() // entry point for a program { // variables declaration //logic which you want to achieve } math.h is a header file for working with mathmatical functions like abs() sum() etc.. string.h is also header file for working with string functions like strupr(),strlwr()...
read more
#include<stdio.h> //header file main() // entry point for a program { // variables declaration //logic which you want to achieve } math.h is a header file for working with mathmatical functions like abs() sum() etc.. string.h is also header file for working with string functions like strupr(),strlwr() etc.. without writing any manual code you can use these functions in your program for your purpose ex: strlwr("nani") is automatically converted to "NANI" which is the output read less
Comments

Engineer - Computer Science, Expert

Hi! Refer to this link. You will get clarity on structures. You can do good programming by using structures for OOP development using structures and pointer to functions combination. I gave you the hint. To learn in depth you can contact me to get trained.
Comments

Software Engineer in MNC, Passionate Techie

The basic structure of a C program is : Preprocessor directives to include libraries required for execution of the program Declaration of global variables and macros main() function{ code ; } other function definitions 1. math.h is a header file that is to...
read more
The basic structure of a C program is : Preprocessor directives to include libraries required for execution of the program Declaration of global variables and macros main() function{ code ; } other function definitions 1. math.h is a header file that is to be include in the program if functions like sqrt(), pow(), abs() sin() etc. are to be called. 2. string.h is a header file that includes various funcitons for working on strings. These include strlen(), strcmp(), strcat(), etc. read less
Comments

Trainer

Hi Ishwari, I am glad to see students like you who are keen to learn to programme. As we all know that c is an excellent programming language which made a platform for various other software and operating systems. To make it such a secure language header file were made, which includes several functions....
read more
Hi Ishwari, I am glad to see students like you who are keen to learn to programme. As we all know that c is an excellent programming language which made a platform for various other software and operating systems. To make it such a secure language header file were made, which includes several functions. The header file like math.h is responsible for doing several mathematical calculations like power calc, sqrt calc and several trigonometrical calc and string.h is accountable for doing wonders like string copy, concatenation, changing upper case letters to lower case and vice versa with strings(a combination of characters). The syntax for including math.h and string.h is:-#include<math.h>#include<string.h>Thank you. I hope this will help you. Good luck. read less
Comments

View 35 more Answers

Related Questions

What are pointers in C language?
Hi Imran, Hope you are doing good. Are you looking for short answer or long answer? :) Pointers in C are variables that store memory addresses. They point to the location of another variable, allowing...
Imran
0 0
7
Why do we still use C language?
C language is still widely used for several reasons. It offers low-level memory manipulation, high performance, and efficient hardware access, making it suitable for system-level programming, embedded...
Aditi
0 0
5
any one can teach me c++
We all are in teaching profession. Hundreds are registered for teaching C++ in Urban Pro. You can opt any one including me.
Bhuvanesh

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

Ask a Question

Related Lessons

C Program-Infinite Loop[For] Demo
//Header Files #include<stdio.h>#include<conio.h> //Main function void main(){ //Function for clearing screen clrscr(); //Infinite for loop for(;;) { printf("Hello!"); } //Function for...

Everything about printf in C language
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...

Do You Know How Is Size Of Structure Defined?
Size of the structure is defined based on multiplies of bigger data type member in the structure. Example: If a structure contains integer, char, short data type, then size of the Structure will be multiples...

INTRODUCTION TO PROGRAMMING LANGUAGES
Language is a medium for communication. If we want to perform anything with another person, we can know the human language as a human being. Similarly, if we want to perform anything with a computer, we...

Some interview questions for freshers on C language
Q1. What are the two forms of #include? There are two variants of #include. The one is #include and the other one is #include”file”. In general the first form that is #include is used to...

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
X

Looking for C Language Classes?

The best tutors for C Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C Language with the Best Tutors

The best Tutors for C Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 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 7.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