Skip to main content
Search
Search This Blog
Livecodo
Pages
Home
Courses
Blog
About us
Moreā¦
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
March 28, 2024
Write a c program to take multiline string input and print individual string length .
#include <stdio.h> #include <string.h> #define MAX_STRINGS 10 #define MAX_LENGTH 100 int main() { char strings[MAX_STRINGS][MAX_LENGTH]; int string_count = 0; char temp[MAX_LENGTH]; printf("Enter multiline string input, press enter key to input each string, end input with a semicolon:\n"); while (1) { fgets(temp, MAX_LENGTH, stdin); if (temp[strlen(temp) - 1] == '\n') { temp[strlen(temp) - 1] = '\0'; } if (strcmp(temp, ";") == 0) { break; } strcpy(strings[string_count++], temp); } printf("\nIndividual string length results:\n"); for (int i = 0; i < string_count; i++) { printf("String %d: Length %zu\n", i + 1, strlen(strings[i])); } return 0; } </div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <div class='byline post-share-buttons goog-inline-block'> <div aria-owns='sharing-popup-Blog1-footer-1-5249324492147534275' class='sharing' data-title='Write a c program to take multiline string input and print individual string length .'> <button aria-controls='sharing-popup-Blog1-footer-1-5249324492147534275' aria-label='Share' class='sharing-button touch-icon-button' id='sharing-button-Blog1-footer-1-5249324492147534275' role='button'> Share </button> <div class='share-buttons-container'> <ul aria-hidden='true' aria-label='Share' class='share-buttons hidden' id='sharing-popup-Blog1-footer-1-5249324492147534275' role='menu'> <li> <span aria-label='Get link' class='sharing-platform-button sharing-element-link' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=5249324492147534275&target=' data-url='https://www.livecodo.com/2024/03/write-c-program-to-take-multiline.html' role='menuitem' tabindex='-1' title='Get link'> <svg class='svg-icon-24 touch-icon sharing-link'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_link_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Get link</span> </span> </li> <li> <span aria-label='Share to Facebook' class='sharing-platform-button sharing-element-facebook' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=5249324492147534275&target=facebook' data-url='https://www.livecodo.com/2024/03/write-c-program-to-take-multiline.html' role='menuitem' tabindex='-1' title='Share to Facebook'> <svg class='svg-icon-24 touch-icon sharing-facebook'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_facebook_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Facebook</span> </span> </li> <li> <span aria-label='Share to X' class='sharing-platform-button sharing-element-twitter' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=5249324492147534275&target=twitter' data-url='https://www.livecodo.com/2024/03/write-c-program-to-take-multiline.html' role='menuitem' tabindex='-1' title='Share to X'> <svg class='svg-icon-24 touch-icon sharing-twitter'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_twitter_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>X</span> </span> </li> <li> <span aria-label='Share to Pinterest' class='sharing-platform-button sharing-element-pinterest' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=5249324492147534275&target=pinterest' data-url='https://www.livecodo.com/2024/03/write-c-program-to-take-multiline.html' role='menuitem' tabindex='-1' title='Share to Pinterest'> <svg class='svg-icon-24 touch-icon sharing-pinterest'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_pinterest_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Pinterest</span> </span> </li> <li> <span aria-label='Email' class='sharing-platform-button sharing-element-email' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=5249324492147534275&target=email' data-url='https://www.livecodo.com/2024/03/write-c-program-to-take-multiline.html' role='menuitem' tabindex='-1' title='Email'> <svg class='svg-icon-24 touch-icon sharing-email'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_email_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Email</span> </span> </li> <li aria-hidden='true' class='hidden'> <span aria-label='Share to other apps' class='sharing-platform-button sharing-element-other' data-url='https://www.livecodo.com/2024/03/write-c-program-to-take-multiline.html' role='menuitem' tabindex='-1' title='Share to other apps'> <svg class='svg-icon-24 touch-icon sharing-sharingOther'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_more_horiz_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Other Apps</span> </span> </li> </ul> </div> </div> </div> </div> <div class='post-footer-line post-footer-line-2'> </div> <div class='post-footer-line post-footer-line-3'> </div> </div> </div> </div> <section class='comments' data-num-comments='0' id='comments'> <a name='comments'></a> </section> </div> </div> </div><div class='widget PopularPosts' data-version='2' id='PopularPosts1'> <h3 class='title'> Popular Posts </h3> <div class='widget-content'> <div role='feed'> <article class='post' role='article'> <div class='post no-featured-image'> <div class='post-header'> <div class='post-header-line-1'> <span class='byline post-timestamp'> <meta content='https://www.livecodo.com/2024/03/dynamic-memory-allocation-in-c.html'/> <a class='timestamp-link' href='https://www.livecodo.com/2024/03/dynamic-memory-allocation-in-c.html' rel='bookmark' title='permanent link'> <time class='published' datetime='2024-03-26T20:39:00+05:30' title='2024-03-26T20:39:00+05:30'> March 26, 2024 </time> </a> </span> </div> </div> <h3 class='post-title'><a href='https://www.livecodo.com/2024/03/dynamic-memory-allocation-in-c.html'>Dynamic Memory allocation in C</a></h3> <div class='post-footer'> <div class='post-footer-line post-footer-line-0'> <div class='byline post-share-buttons goog-inline-block'> <div aria-owns='sharing-popup-PopularPosts1-footer-0-1793754742172713548' class='sharing' data-title='Dynamic Memory allocation in C'> <button aria-controls='sharing-popup-PopularPosts1-footer-0-1793754742172713548' aria-label='Share' class='sharing-button touch-icon-button' id='sharing-button-PopularPosts1-footer-0-1793754742172713548' role='button'> Share </button> <div class='share-buttons-container'> <ul aria-hidden='true' aria-label='Share' class='share-buttons hidden' id='sharing-popup-PopularPosts1-footer-0-1793754742172713548' role='menu'> <li> <span aria-label='Get link' class='sharing-platform-button sharing-element-link' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=1793754742172713548&target=' data-url='https://www.livecodo.com/2024/03/dynamic-memory-allocation-in-c.html' role='menuitem' tabindex='-1' title='Get link'> <svg class='svg-icon-24 touch-icon sharing-link'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_link_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Get link</span> </span> </li> <li> <span aria-label='Share to Facebook' class='sharing-platform-button sharing-element-facebook' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=1793754742172713548&target=facebook' data-url='https://www.livecodo.com/2024/03/dynamic-memory-allocation-in-c.html' role='menuitem' tabindex='-1' title='Share to Facebook'> <svg class='svg-icon-24 touch-icon sharing-facebook'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_facebook_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Facebook</span> </span> </li> <li> <span aria-label='Share to X' class='sharing-platform-button sharing-element-twitter' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=1793754742172713548&target=twitter' data-url='https://www.livecodo.com/2024/03/dynamic-memory-allocation-in-c.html' role='menuitem' tabindex='-1' title='Share to X'> <svg class='svg-icon-24 touch-icon sharing-twitter'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_twitter_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>X</span> </span> </li> <li> <span aria-label='Share to Pinterest' class='sharing-platform-button sharing-element-pinterest' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=1793754742172713548&target=pinterest' data-url='https://www.livecodo.com/2024/03/dynamic-memory-allocation-in-c.html' role='menuitem' tabindex='-1' title='Share to Pinterest'> <svg class='svg-icon-24 touch-icon sharing-pinterest'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_pinterest_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Pinterest</span> </span> </li> <li> <span aria-label='Email' class='sharing-platform-button sharing-element-email' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=1793754742172713548&target=email' data-url='https://www.livecodo.com/2024/03/dynamic-memory-allocation-in-c.html' role='menuitem' tabindex='-1' title='Email'> <svg class='svg-icon-24 touch-icon sharing-email'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_email_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Email</span> </span> </li> <li aria-hidden='true' class='hidden'> <span aria-label='Share to other apps' class='sharing-platform-button sharing-element-other' data-url='https://www.livecodo.com/2024/03/dynamic-memory-allocation-in-c.html' role='menuitem' tabindex='-1' title='Share to other apps'> <svg class='svg-icon-24 touch-icon sharing-sharingOther'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_more_horiz_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Other Apps</span> </span> </li> </ul> </div> </div> </div> </div> </div> </div> </article> <article class='post' role='article'> <div class='post no-featured-image'> <div class='post-header'> <div class='post-header-line-1'> <span class='byline post-timestamp'> <meta content='https://www.livecodo.com/2024/06/astrological-sign-according-to-date-of.html'/> <a class='timestamp-link' href='https://www.livecodo.com/2024/06/astrological-sign-according-to-date-of.html' rel='bookmark' title='permanent link'> <time class='published' datetime='2024-06-10T23:32:00+05:30' title='2024-06-10T23:32:00+05:30'> June 10, 2024 </time> </a> </span> </div> </div> <h3 class='post-title'><a href='https://www.livecodo.com/2024/06/astrological-sign-according-to-date-of.html'>Astrological sign according to Date of Birth </a></h3> <div class='post-footer'> <div class='post-footer-line post-footer-line-0'> <div class='byline post-share-buttons goog-inline-block'> <div aria-owns='sharing-popup-PopularPosts1-footer-0-1618682417282735549' class='sharing' data-title='Astrological sign according to Date of Birth '> <button aria-controls='sharing-popup-PopularPosts1-footer-0-1618682417282735549' aria-label='Share' class='sharing-button touch-icon-button' id='sharing-button-PopularPosts1-footer-0-1618682417282735549' role='button'> Share </button> <div class='share-buttons-container'> <ul aria-hidden='true' aria-label='Share' class='share-buttons hidden' id='sharing-popup-PopularPosts1-footer-0-1618682417282735549' role='menu'> <li> <span aria-label='Get link' class='sharing-platform-button sharing-element-link' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=1618682417282735549&target=' data-url='https://www.livecodo.com/2024/06/astrological-sign-according-to-date-of.html' role='menuitem' tabindex='-1' title='Get link'> <svg class='svg-icon-24 touch-icon sharing-link'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_link_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Get link</span> </span> </li> <li> <span aria-label='Share to Facebook' class='sharing-platform-button sharing-element-facebook' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=1618682417282735549&target=facebook' data-url='https://www.livecodo.com/2024/06/astrological-sign-according-to-date-of.html' role='menuitem' tabindex='-1' title='Share to Facebook'> <svg class='svg-icon-24 touch-icon sharing-facebook'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_facebook_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Facebook</span> </span> </li> <li> <span aria-label='Share to X' class='sharing-platform-button sharing-element-twitter' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=1618682417282735549&target=twitter' data-url='https://www.livecodo.com/2024/06/astrological-sign-according-to-date-of.html' role='menuitem' tabindex='-1' title='Share to X'> <svg class='svg-icon-24 touch-icon sharing-twitter'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_twitter_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>X</span> </span> </li> <li> <span aria-label='Share to Pinterest' class='sharing-platform-button sharing-element-pinterest' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=1618682417282735549&target=pinterest' data-url='https://www.livecodo.com/2024/06/astrological-sign-according-to-date-of.html' role='menuitem' tabindex='-1' title='Share to Pinterest'> <svg class='svg-icon-24 touch-icon sharing-pinterest'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_pinterest_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Pinterest</span> </span> </li> <li> <span aria-label='Email' class='sharing-platform-button sharing-element-email' data-href='https://www.blogger.com/share-post.g?blogID=107528689141065553&postID=1618682417282735549&target=email' data-url='https://www.livecodo.com/2024/06/astrological-sign-according-to-date-of.html' role='menuitem' tabindex='-1' title='Email'> <svg class='svg-icon-24 touch-icon sharing-email'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_24_email_dark' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Email</span> </span> </li> <li aria-hidden='true' class='hidden'> <span aria-label='Share to other apps' class='sharing-platform-button sharing-element-other' data-url='https://www.livecodo.com/2024/06/astrological-sign-according-to-date-of.html' role='menuitem' tabindex='-1' title='Share to other apps'> <svg class='svg-icon-24 touch-icon sharing-sharingOther'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_more_horiz_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <span class='platform-sharing-text'>Other Apps</span> </span> </li> </ul> </div> </div> </div> </div> </div> </div> </article> </div> </div> </div></div> </main> </div> <footer class='footer no-items section' id='footer' name='Footer'></footer> </div> </div> <aside class='sidebar-container container sidebar-invisible' role='complementary'> <div class='navigation'> <svg class='svg-icon-24 touch-icon sidebar-back rtl-reversible-icon'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_arrow_back_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> </div> <div class='section' id='sidebar' name='Sidebar'> <div class='widget Label' data-version='2' id='Label1'> <details class='collapsible extendable'> <summary> <div class='collapsible-title'> <h3 class='title'> Labels </h3> <svg class='svg-icon-24 chevron-down'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_expand_more_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> <svg class='svg-icon-24 chevron-up'> <use xlink:href='/responsive/sprite_v1_6.css.svg#ic_expand_less_black_24dp' xmlns:xlink='http://www.w3.org/1999/xlink'></use> </svg> </div> </summary> <div class='widget-content list-label-widget-content'> <div class='first-items'> <ul> <li><a class='label-name' href='https://www.livecodo.com/search/label/first%20Indian%20stock'>first Indian stock<span class='label-count'>1</span></a></li> <li><a class='label-name' href='https://www.livecodo.com/search/label/first%20Indian%20stock%20to%20cross%201lakh'>first Indian stock to cross 1lakh<span class='label-count'>1</span></a></li> <li><a class='label-name' href='https://www.livecodo.com/search/label/Mrf'>Mrf<span class='label-count'>1</span></a></li> <li><a class='label-name' href='https://www.livecodo.com/search/label/MRF%20share%20price%20crosses%201%20lakh'>MRF share price crosses 1 lakh<span class='label-count'>1</span></a></li> <li><a class='label-name' href='https://www.livecodo.com/search/label/MRF%20tyre'>MRF tyre<span class='label-count'>1</span></a></li> </ul> </div> </div> </details> </div><div class='widget ReportAbuse' data-version='2' id='ReportAbuse1'> <h3 class='title'> <a class='report_abuse' href='https://www.blogger.com/go/report-abuse' rel='noopener nofollow' target='_blank'> Report Abuse </a> </h3> </div> <div class='widget LinkList' data-version='2' id='LinkList3'> <div class='widget-content'> <ul> <li><a href='/'>Home</a></li> <li><a href='https://www.livecodo.com/p/courses.html'>Courses</a></li> <li><a href='https://www.livecodo.com/p/blog.html'>Blog</a></li> <li><a href='#'>About us</a></li> </ul> </div> </div> <!--Failed to render gadget 'HTML1'. There was an error processing the markup. --> <div class='widget Image' data-version='2' id='Image2'> <div class='widget-content'> <img alt='' height='267' id='Image2_img' src='https://blogger.googleusercontent.com/img/a/AVvXsEhlFMgq3MZErx-AJnE5IKZuMatCBnwszhxkqBTv9A_Wj8GTqenuSpQMFy9K0P1kTGZBhHjpd1Hq30faaxbMKnHGudDyWNuhKyr8X_xMEakRrXSHqXA5icnbVjE8kKOAHyld2jzioA-TRW34fT5cOVxvXucBS_vilU3QWtDP8re0RkD5nrMIVtMioI8ETYE=s267' srcset='https://blogger.googleusercontent.com/img/a/AVvXsEhlFMgq3MZErx-AJnE5IKZuMatCBnwszhxkqBTv9A_Wj8GTqenuSpQMFy9K0P1kTGZBhHjpd1Hq30faaxbMKnHGudDyWNuhKyr8X_xMEakRrXSHqXA5icnbVjE8kKOAHyld2jzioA-TRW34fT5cOVxvXucBS_vilU3QWtDP8re0RkD5nrMIVtMioI8ETYE=s72 72w, https://blogger.googleusercontent.com/img/a/AVvXsEhlFMgq3MZErx-AJnE5IKZuMatCBnwszhxkqBTv9A_Wj8GTqenuSpQMFy9K0P1kTGZBhHjpd1Hq30faaxbMKnHGudDyWNuhKyr8X_xMEakRrXSHqXA5icnbVjE8kKOAHyld2jzioA-TRW34fT5cOVxvXucBS_vilU3QWtDP8re0RkD5nrMIVtMioI8ETYE=s128 128w, https://blogger.googleusercontent.com/img/a/AVvXsEhlFMgq3MZErx-AJnE5IKZuMatCBnwszhxkqBTv9A_Wj8GTqenuSpQMFy9K0P1kTGZBhHjpd1Hq30faaxbMKnHGudDyWNuhKyr8X_xMEakRrXSHqXA5icnbVjE8kKOAHyld2jzioA-TRW34fT5cOVxvXucBS_vilU3QWtDP8re0RkD5nrMIVtMioI8ETYE=s220 220w, https://blogger.googleusercontent.com/img/a/AVvXsEhlFMgq3MZErx-AJnE5IKZuMatCBnwszhxkqBTv9A_Wj8GTqenuSpQMFy9K0P1kTGZBhHjpd1Hq30faaxbMKnHGudDyWNuhKyr8X_xMEakRrXSHqXA5icnbVjE8kKOAHyld2jzioA-TRW34fT5cOVxvXucBS_vilU3QWtDP8re0RkD5nrMIVtMioI8ETYE=s400 400w, https://blogger.googleusercontent.com/img/a/AVvXsEhlFMgq3MZErx-AJnE5IKZuMatCBnwszhxkqBTv9A_Wj8GTqenuSpQMFy9K0P1kTGZBhHjpd1Hq30faaxbMKnHGudDyWNuhKyr8X_xMEakRrXSHqXA5icnbVjE8kKOAHyld2jzioA-TRW34fT5cOVxvXucBS_vilU3QWtDP8re0RkD5nrMIVtMioI8ETYE=s640 640w, https://blogger.googleusercontent.com/img/a/AVvXsEhlFMgq3MZErx-AJnE5IKZuMatCBnwszhxkqBTv9A_Wj8GTqenuSpQMFy9K0P1kTGZBhHjpd1Hq30faaxbMKnHGudDyWNuhKyr8X_xMEakRrXSHqXA5icnbVjE8kKOAHyld2jzioA-TRW34fT5cOVxvXucBS_vilU3QWtDP8re0RkD5nrMIVtMioI8ETYE=s800 800w, https://blogger.googleusercontent.com/img/a/AVvXsEhlFMgq3MZErx-AJnE5IKZuMatCBnwszhxkqBTv9A_Wj8GTqenuSpQMFy9K0P1kTGZBhHjpd1Hq30faaxbMKnHGudDyWNuhKyr8X_xMEakRrXSHqXA5icnbVjE8kKOAHyld2jzioA-TRW34fT5cOVxvXucBS_vilU3QWtDP8re0RkD5nrMIVtMioI8ETYE=s1024 1024w, https://blogger.googleusercontent.com/img/a/AVvXsEhlFMgq3MZErx-AJnE5IKZuMatCBnwszhxkqBTv9A_Wj8GTqenuSpQMFy9K0P1kTGZBhHjpd1Hq30faaxbMKnHGudDyWNuhKyr8X_xMEakRrXSHqXA5icnbVjE8kKOAHyld2jzioA-TRW34fT5cOVxvXucBS_vilU3QWtDP8re0RkD5nrMIVtMioI8ETYE=s1280 1280w, https://blogger.googleusercontent.com/img/a/AVvXsEhlFMgq3MZErx-AJnE5IKZuMatCBnwszhxkqBTv9A_Wj8GTqenuSpQMFy9K0P1kTGZBhHjpd1Hq30faaxbMKnHGudDyWNuhKyr8X_xMEakRrXSHqXA5icnbVjE8kKOAHyld2jzioA-TRW34fT5cOVxvXucBS_vilU3QWtDP8re0RkD5nrMIVtMioI8ETYE=s1600 1600w' width='267'> </img> <br/> </div> </div><!--Failed to render gadget 'HTML2'. There was an error processing the markup. --> </div> </aside> <script type="text/javascript" src="https://resources.blogblog.com/blogblog/data/res/1164792942-fancy_compiled.js" async="true"></script> <script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/2218197725-widgets.js"></script> <script type='text/javascript'> window['__wavt'] = 'AOuZoY4gsXgw69JUUu9xwEvE56WUQUUNfA:1744768426481';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d107528689141065553','//www.livecodo.com/2024/03/write-c-program-to-take-multiline.html','107528689141065553'); _WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '107528689141065553', 'title': 'Livecodo', 'url': 'https://www.livecodo.com/2024/03/write-c-program-to-take-multiline.html', 'canonicalUrl': 'https://www.livecodo.com/2024/03/write-c-program-to-take-multiline.html', 'homepageUrl': 'https://www.livecodo.com/', 'searchUrl': 'https://www.livecodo.com/search', 'canonicalHomepageUrl': 'https://www.livecodo.com/', 'blogspotFaviconUrl': 'https://www.livecodo.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': true, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': 'G-J5PF69MYNN', 'analytics4': true, 'encoding': 'UTF-8', 'locale': 'en-GB', 'localeUnderscoreDelimited': 'en_gb', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': false, 'isMobileRequest': false, 'mobileClass': '', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Livecodo - Atom\x22 href\x3d\x22https://www.livecodo.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22Livecodo - RSS\x22 href\x3d\x22https://www.livecodo.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Livecodo - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/107528689141065553/posts/default\x22 /\x3e\n\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Livecodo - Atom\x22 href\x3d\x22https://www.livecodo.com/feeds/5249324492147534275/comments/default\x22 /\x3e\n', 'meTag': '', 'adsenseClientId': 'ca-pub-6204950242514109', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': true, 'adsenseAutoAds': true, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/416a3bf2168b10d3', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': 'Get link', 'key': 'link', 'shareMessage': 'Get link', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': 'Share to Facebook', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': 'X', 'key': 'twitter', 'shareMessage': 'Share to X', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': 'Share to Pinterest', 'target': 'pinterest'}, {'name': 'Email', 'key': 'email', 'shareMessage': 'Email', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27en_GB\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': 'Read more', 'pageType': 'item', 'postId': '5249324492147534275', 'pageName': 'Write a c program to take multiline string input and print individual string length .', 'pageTitle': 'Livecodo: Write a c program to take multiline string input and print individual string length .', 'metaDescription': ''}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': 'Edit', 'linkCopiedToClipboard': 'Link copied to clipboard', 'ok': 'Ok', 'postLink': 'Post link'}}, {'name': 'template', 'data': {'name': 'custom', 'localizedName': 'Custom', 'isResponsive': true, 'isAlternateRendering': false, 'isCustom': true}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': false, 'title': 'Write a c program to take multiline string input and print individual string length .', 'description': 'Livecodo, C program , Java program , Mathematics, Physics', 'url': 'https://www.livecodo.com/2024/03/write-c-program-to-take-multiline.html', 'type': 'item', 'isSingleItem': true, 'isMultipleItems': false, 'isError': false, 'isPage': false, 'isPost': true, 'isHomepage': false, 'isArchive': false, 'isLabelSearch': false, 'postId': 5249324492147534275}}, {'name': 'widgets', 'data': [{'title': 'Search This Blog', 'type': 'BlogSearch', 'sectionId': 'search_top', 'id': 'BlogSearch1'}, {'title': 'Livecodo (Header)', 'type': 'Header', 'sectionId': 'header', 'id': 'Header1'}, {'title': 'Pages', 'type': 'PageList', 'sectionId': 'page_list_top', 'id': 'PageList1'}, {'title': 'Blog Posts', 'type': 'Blog', 'sectionId': 'page_body', 'id': 'Blog1', 'posts': [{'id': '5249324492147534275', 'title': 'Write a c program to take multiline string input and print individual string length .', 'showInlineAds': false}], 'headerByline': {'regionName': 'header1', 'items': [{'name': 'timestamp', 'label': ''}]}, 'footerBylines': [{'regionName': 'footer1', 'items': [{'name': 'share', 'label': ''}, {'name': 'comments', 'label': 'comments'}, {'name': 'icons', 'label': ''}]}, {'regionName': 'footer2', 'items': [{'name': 'labels', 'label': 'Labels:'}]}, {'regionName': 'footer3', 'items': [{'name': 'location', 'label': 'Location:'}]}], 'allBylineItems': [{'name': 'timestamp', 'label': ''}, {'name': 'share', 'label': ''}, {'name': 'comments', 'label': 'comments'}, {'name': 'icons', 'label': ''}, {'name': 'labels', 'label': 'Labels:'}, {'name': 'location', 'label': 'Location:'}]}, {'title': '', 'type': 'PopularPosts', 'sectionId': 'page_body', 'id': 'PopularPosts1', 'posts': [{'title': 'Dynamic Memory allocation in C', 'id': 1793754742172713548}, {'title': 'Astrological sign according to Date of Birth ', 'id': 1618682417282735549}]}, {'title': 'Labels', 'type': 'Label', 'sectionId': 'sidebar', 'id': 'Label1'}, {'title': '', 'type': 'ReportAbuse', 'sectionId': 'sidebar', 'id': 'ReportAbuse1'}, {'title': '', 'type': 'LinkList', 'sectionId': 'sidebar', 'id': 'LinkList3'}, {'title': 'JSON Variables', 'type': 'HTML', 'sectionId': 'sidebar', 'id': 'HTML1'}, {'title': '', 'type': 'Image', 'sectionId': 'sidebar', 'id': 'Image2'}, {'title': 'Breaking', 'type': 'HTML', 'sectionId': 'sidebar', 'id': 'HTML2'}]}]); _WidgetManager._RegisterWidget('_BlogSearchView', new _WidgetInfo('BlogSearch1', 'search_top', document.getElementById('BlogSearch1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', document.getElementById('Header1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_PageListView', new _WidgetInfo('PageList1', 'page_list_top', document.getElementById('PageList1'), {'title': 'Pages', 'links': [{'isCurrentPage': false, 'href': 'http://www.livecodo.com/', 'title': 'Home'}, {'isCurrentPage': false, 'href': 'https://www.livecodo.com/p/courses.html', 'id': '1708828506718522510', 'title': 'Courses'}, {'isCurrentPage': false, 'href': 'https://www.livecodo.com/p/blog.html', 'id': '8661760094253651547', 'title': 'Blog'}, {'isCurrentPage': false, 'href': 'https://www.livecodo.com/p/about-us.html', 'id': '5914770786584933955', 'title': 'About us'}], 'mobile': false, 'showPlaceholder': true, 'hasCurrentPage': false}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'page_body', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/1089080482-lbx__en_gb.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/3681588378-lightbox_bundle.css'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_PopularPostsView', new _WidgetInfo('PopularPosts1', 'page_body', document.getElementById('PopularPosts1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LabelView', new _WidgetInfo('Label1', 'sidebar', document.getElementById('Label1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_ReportAbuseView', new _WidgetInfo('ReportAbuse1', 'sidebar', document.getElementById('ReportAbuse1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_LinkListView', new _WidgetInfo('LinkList3', 'sidebar', document.getElementById('LinkList3'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML1', 'sidebar', document.getElementById('HTML1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_ImageView', new _WidgetInfo('Image2', 'sidebar', document.getElementById('Image2'), {'resize': true}, 'displayModeFull')); _WidgetManager._RegisterWidget('_HTMLView', new _WidgetInfo('HTML2', 'sidebar', document.getElementById('HTML2'), {}, 'displayModeFull')); </script> </body> </html>