Skip to content
Scholar soul

Scholar soul

Be A Scholar

  • C Programming Tutorial
  • Programming
  • Intellectual property rights
  • Privacy Policy
  • Disclaimer
  • Contribute

Kriston

strtod() function in c

February 20, 2021February 20, 2021 by Kriston

What is strtod() in c? strtod() converts the given string to floating point value. It sets a pointer to point to the first character of the string otherwise it sets the pointer to NULL. It is defined under stdlib.h header file. Prototype Return value strtod() function returns converted floating point number as a double value … Read more

Categories C Programming Tutorial Tags c programming tutorial Leave a comment

strtol() function in c

February 17, 2021February 17, 2021 by Kriston

What is strtol in c? strtol converts the initial part of the given string to long int value according to the base value. The base value must be within 2 to 36. It is defined under stdlib.h header file. Prototype Return value The function returns converted long int value else zero is returned. Example program … Read more

Categories C Programming Tutorial Tags c programming tutorial, string Leave a comment

strchr in c

January 7, 2021January 7, 2021 by Kriston

What is strchr in c programming? strchr in c is a built-in function used to search for a first occurrence of the given character in a string. This function is defined in string.h header file. strchr function returns first occurrence of the character in a string else null if character not found. Prototype Parameters strchr … Read more

Categories C Programming Tutorial Tags c programming tutorial, string Leave a comment

Do-while loop in c

December 11, 2020December 6, 2020 by Kriston

What is do-while loop? do-while loop in c is a loop control statement that executes a block of statement repeatedly until a certain condition is met. It is similar to a while statement but here condition is checked after the execution of statements. Hence the block of statements is executed at least once. Syntax How … Read more

Categories C Programming Tutorial Tags c programming tutorial

Comment lines in c

December 11, 2020December 4, 2020 by Kriston

What are comment lines in c programming? Comment lines in c programming provides piece of information about some statements of code. Usually they are the descriptions or explanation for a specific piece of code. Comments are not executables, they are ignored by compiler. Comments can be used anywhere in program. It is optional to use … Read more

Categories C Programming Tutorial Tags c programming tutorial

Break and continue in c programming

December 11, 2020November 28, 2020 by Kriston

Break statement in c In some situations, we need to jump out of a loop without checking the conditional test. The keyword break allows doing this in c programming. Whenever a break statement is encountered the control jumps out of the loop and executes the next statement after the loop. The break statement is associated … Read more

Categories C Programming Tutorial Tags c programming tutorial

trunc in c

December 11, 2020November 9, 2020 by Kriston
trunc in c programming

What is trunc in c programming? trunc in c truncates double type value and returns integer value. This function is defined in math.h header file. Prototype Prototype of trunc in c is as follows Parameter trunc function takes double type value as input parameter. Return value trunc function returns truncated value of a given double … Read more

Categories C Programming Tutorial Tags c programming tutorial

cosh in c

December 11, 2020November 9, 2020 by Kriston
cosh in c programming

What is cosh in c programming? cosh in c is a mathematical function which is used to calculate hyperbolic cosine of a given number. This function is defined in math.h header file. Prototype Parameters cosh function takes floating point value as input parameter. Return value cosh function returns hyperbolic cosine value of a given number. … Read more

Categories C Programming Tutorial Tags c programming tutorial

log in c

December 11, 2020November 9, 2020 by Kriston
log in c programming

What is log in c programming? log in c is a library function which is used to calculate logarithm value of a given number. This function is defined in math.h header file. Prototype Parameters log function takes double type value as input parameter. Return value log function returns logarithm value of given number. Example program … Read more

Categories C Programming Tutorial Tags c programming tutorial

log10 in c

December 11, 2020November 9, 2020 by Kriston
log10 in c programming

What is log10 in c programming? log10 in c is a library function which is used to calculate common base10 logarithm value of a given number. This function is defined in math.h header file. Prototype Parameters log10 function takes double type value as input parameter. Return value log10 function returns base10 logarithm value of given … Read more

Categories C Programming Tutorial Tags c programming tutorial
Post navigation
Older posts
1 2 … 6 Next →

Recent Posts

  • strtod() function in c
  • strtol() function in c
  • strchr in c
  • Difference between structure and union in c programming language
  • strncpy in c

Scholarsoul

  • Contact us
  • Contribute
  • Disclaimer
  • Privacy Policy
  • Report errors

Recent posts

  • strtod() function in c
  • strtol() function in c
  • strchr in c
  • Difference between structure and union in c programming language
  • strncpy in c

Categories

© Scholar Soul 2021