💻 Day 7 of My 30-Day Embedded C Programming Challenge 🧩 Question of the Day: Write a program to concatenate two strings — a common interview question in C programming. 💡 Concepts Covered: Manual string manipulation in C Array indexing and memory handling Understanding null termination in strings Handling alphabetic and numeric inputs ⚙️ Approach I Used: Took two strings as input from the user. Used a loop to find the end of the first string. Appended the second string character by character to the first string. Ensured the final string was properly null-terminated. Did not use any standard library functions like strcat() or strlen(). 📘 Key Learning: This exercise reinforced my understanding of how strings are stored in memory, how concatenation works internally, and how to perform manual string operations safely using array indexing. ✅ Output Example: Enter first string: Hello Enter second string: World Concatenated string: HelloWorld #30DayCodingChallenge #EmbeddedC #CProgramming #StringManipulation #MemoryManagement #CodeEveryday #InterviewPrep #LearningJourney
How to Concatenate Strings in C Without strcat()
More Relevant Posts
-
💻 New C Programming Tutorial: Understanding Type Specifiers! I just uploaded a new video for beginners learning C programming. In this tutorial, I explain type specifiers, why they are important, and how to use them effectively in your programs. Whether you’re just starting with C or brushing up on fundamentals, this video will help you write cleaner and more efficient code. 📌 Topics Covered: What are type specifiers Common type specifiers: int, float, double, char Practical examples and tips Watch here: https://lnkd.in/drGq-T8q #CProgramming #ProgrammingBasics #TypeSpecifiers #Coding #LearnToCode #BeginnerFriendly
C Programming: Understanding Type Specifiers | Beginner’s Guide
https://www.youtube.com/
To view or add a comment, sign in
-
Introduction to C Programming Language C is a general-purpose, procedural programming language developed by Dennis Ritchie in 1972 at Bell Labs. It is one of the oldest and most powerful programming languages used to develop operating systems, compilers, and embedded systems. Features of C 1. Simple and efficient 2. Fast execution (close to hardware) 3. Portable (runs on any system) 4. Structured language (uses functions) 5. Rich library of built-in functions 6. Memory management with pointers Why to Learn C It helps to understand programming fundamentals. Forms the base for other languages like C++, Java, and Python. Used in system programming, embedded systems, and OS development. Improves logical and problem-solving skills. Example Program #include <stdio.h> int main() { printf("Hello, World!"); return 0; } Output: Hello, World!
To view or add a comment, sign in
-
-
Important questions for C Programming PPS(Problem Solving and Programming) Sharpen your C Programming skills! Here are some interesting C questions to test your logic and fundamentals. Try to solve them before checking the answers Comment your answers and tag a friend who loves coding in C! Drop your answers or ask your doubts in the comments. #C_Programming #Code #Handwritten #C_Programming #Coding_Challenge #Learning_Together #Code_In_C #Data_Structures
To view or add a comment, sign in
-
🚀 Pointers to Structures and Classes in C++ Pointers can point to structures and classes in C++. The arrow operator (->) is used to access members of a structure or class through a pointer. This is a common technique for working with objects dynamically allocated on the heap. Pointers to objects allow for polymorphism and dynamic binding, fundamental concepts in object-oriented programming in C++. #c++ #programming #coding #tech #learning #professional #career #development
To view or add a comment, sign in
-
-
A simple C program using pointers to find the minimum value in an array. It demonstrates how to access and compare array elements through pointer arithmetic — a fundamental concept for mastering memory-level programming in C.
To view or add a comment, sign in
-
-
🚀 Day 46 of #100DaysOfCode Today I tackled one of the classic C programming challenges: Matrix Multiplication 💥 🔢 The program takes two square matrices of size n × n as input from the user, multiplies them using nested loops, and outputs the resulting matrix. I used Variable Length Arrays (VLAs) for dynamic sizing and implemented the standard multiplication logic: 🧠 This challenge helped reinforce: Loop nesting for multidimensional arrays Matrix indexing logic Clean, symmetric output formatting for better readability 📸 I’ve kept the output structured for easy sharing and future upgrades (thinking about adding grid-style display or color-coded elements next!). 💡 Code Concepts Covered Dynamic matrix allocation User input handling Matrix multiplication algorithm Output formatting 🔧 Next Steps Thinking of adding: Input validation Grid-style matrix display Support for non-square matrices 🔗 Hashtags #Day46 #100DaysOfCode #CProgramming #CodeNewbie #LearnToCode #CodingChallenge #ProblemSolving #CodeDaily #ProgrammingInC kirti singh
To view or add a comment, sign in
-
💡Understanding Arrays in C Arrays are one of the most fundamental concepts in C programming - they help us store multiple values of the same type under a single variable name. Instead of creating separate variables for each value, we can use an array to hold them all and access them easily using indexes. For example, in this image - Array[0] = 2 Array[1] = 4 Array[2] = 8 and so on… Simple, efficient, and essential for every C programmer! #CProgramming #CodingBasics #LearnToCode #Arrays
To view or add a comment, sign in
-
-
Important questions for C Programming PPS(Problem Solving and Programming) 🚀 Sharpen your C Programming skills! Here are some interesting C questions to test your logic and fundamentals. Try to solve them before checking the answers 👇 💬 Comment your answers and tag a friend who loves coding in C! 💬 Drop your answers or ask your doubts in the comments. #C_Programming #Code #Handwritten #C_Programming #Coding_Challenge #Learning_Together #Code_In_C #Data_Structures
To view or add a comment, sign in
-
A simple C program demonstrating File Handling — how to create , read data from files efficiently. This concept builds the foundation for data storage and retrieval in system-level programming.
To view or add a comment, sign in
-
-
🚀 Basic C++ Syntax: Hello, World! The classic 'Hello, World!' program introduces the basic syntax of C++. It demonstrates the structure of a C++ program, including the `main` function, which is the entry point for execution. It also introduces the `iostream` library for input and output operations. The `std::cout` object is used to print text to the console. This simple program forms the foundation for learning more complex C++ concepts. #c++ #programming #coding #tech #learning #professional #career #development
To view or add a comment, sign in
-
Explore related topics
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development
1 - str1 is 100 dont use just alone %s, use %100s (or 99, the 100th will be the null termination) 2 - dont use while and do while when you are processing strings, some day you will mess the things up