Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the most used form of Structs #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Changing the most used form of Structs
  • Loading branch information
thiagomonteles authored Oct 7, 2018
commit 9b399d8fd3b36ba7a525df7225eb52b0b0ca6334
9 changes: 5 additions & 4 deletions Stucture/SizeS.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@


#include<stdio.h>
#include<stdlib.h>

struct stud {
typedef struct stud {
int roll;
char name[10];
int marks;
};
}Stude;

int main() {
int size;
struct stud s;
Stude stud s;

size = sizeof(s);
printf("nSize of Structure : %d", size);
Expand All @@ -42,4 +43,4 @@ int main() {
----------
sizeof is Operator not function
sizeof Operator Takes any Variable as Parameter.
*/
*/