c program for assignment operator

#include <stdio.h>

int main() {
    int a = 5;
    int b;

    b = a;  // Assignment operator

    printf("The value of b is: %d\n", b);

    return 0;
}
  1. Include the standard input-output library.
  2. Define the main function.
  3. Declare an integer variable a and initialize it with the value 5.
  4. Declare another integer variable b without initializing it.
  5. Use the assignment operator (=) to assign the value of a to b.
  6. Print the value of b using printf statement.
  7. Return 0 to indicate successful execution of the program.