Write a C program to count the number of lines in a text file.
A multi-line text block or string containing newline characters.
Print the total line count.
1 <= Lines <= 50
Line1 Line2 Line3
3
Counts occurrences of newline 'n' characters in the file stream.
#include <stdio.h>
int main() {
// Assume text is provided via file
return 0;
}Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used