Objectives :

  • Passing struct as argument to a function
  • Eclipse new line error warning -- solved
  • In struct data type the member can be initiated in a sequences, in the order of declaration.
  • static integer data type
  • Code testStructFunct2.txt

Step: 1 Create a project testStructFunct2

Step: 2 Create a source file

Step: 3 Edit Source code

If you get the new line warning, please go to step 5

Step: 4 Runtime View

Step: 5 To suppress new line warning in Eclipse

Make sure that the check-box " Ensure newline at the end of file when saving"