Working With Structures - Assamese
- subtitles off
- captions off
- English
- Assamese
This is a sample video. To access the full content,
please
Login
- Questions posted on Forums
- C and Cpp Tutorials - Assamese
-
Regarding Assignment
I don't understand what is wrong with the following code. Please help.#include <stdio.h>#include <string.h>struct employee{ char name[100]; char address[100]; char desgn[100]; float salary;};int main(){ struct employee details; printf("Please enter the full name of the employee : "); scanf("%[^\n]s", details.name); printf("\n"); printf("Please enter the address of the employee : "); scanf("%[^\n]s", details.address); printf("\n"); printf("Please enter the designation of the employee : "); scanf("%[^\n]s", details.desgn); printf("\n"); printf("Please enter the salary of the employee : "); scanf("%f", details.salary); printf("\n"); printf("\n"); printf("PAY SLIP"); printf("This is to certify that Mr/Ms. %s ,who lives at %s, works in our company as the %s. He receives %f only, as salary per month.", details.name, details.address, details.desgn, details.salary); return 0;}
05-06M 40-50S bsscharan
Answer last updated on: Aug. 19, 2024, 4:19 p.m.
-
Doubt in the program
I have two doubts in the program.1.Is there any reason to write the int main() function after a few lines in this particular program, but to write the same immediately after the include <stdio.h> line in most other programs?2. Why is there a semicolon after the curly bracket before int main() function?
01-02M 50-60S brtbala@gmail.com
Answer last updated on: Oct. 22, 2020, 3:24 a.m.
-
1
First C Program -
2
First Cpp Program -
3
Tokens -
4
Functions -
5
Scope Of Variables -
6
If And Else If statement -
7
Nested If And Switch Statement -
8
Increment And Decrement Operators -
9
Arithmetic Operators -
10
Relational Operators -
11
Logical Operators -
12
Loops -
13
Arrays -
14
Working With 2D Arrays -
15
Strings -
16
String Library Functions -
Working With Structures -
18
Understanding Pointers -
19
Function Call -
20
File Handling In C
Questions posted on ST Forums:
1154 visits
Outline:
ষ্ট্ৰাকচাৰচৰ সৈতে কামকৰা (Working with Structures) -পৰিচয় (Introduction) -ষ্ট্ৰাকচাৰচৰ গাঠণি (Syntax of structures) -ডিক্লেয়াৰেচন আৰু প্ৰাৰম্ভণ (Declaration and initialization) -ষ্ট্ৰাকচাৰ ভেৰিয়েবলৰ ডিক্লেয়াৰেচন (Declaration of structure variable) -ষ্ট্ৰাকচাৰ ভেৰিয়েবলচৰ ব্যৱ্হাৰ (Accessing structure variables)
| Width: | 848 | Height: | 720 |
|---|---|---|---|
| Duration: | 00:06:37 | Size: | 4.8 MB |
Show video info

