this code has logical error , i declared two structures name st1 st2 i copy st1 to st2 after writing st1=st2 i tried to print values using st2 but no result was shown on the console can any one help
Perhaps your assignment is in the wrong order? st1=st2;
At this point st2 has not been initialized. Remember the value on the right side of the assignment is being assigned the values of the left side of the assignment.
By the way you should probably get values for the age and fathersage, although the values will be undefined, the strings will be at their default values (empty).