Skip to main content

Creation of a structure variable

There are two different ways to create structure variable

 struct StudentInfo 

{

 int Rno; 

char Sname[20]; 

float Percentage;  

}s1, s2; 

struct StudentInfo 

 { 

 int Rno; 

 char Sname[20]; 

 float Percentage;  

 }; use

struct StudentInfo s1,s2; 

Here s1 and s2 are structure variables of structure StudentInfo. 

Creation of a structure variable reserves memory space.


Comments

Trending⚡

Pointer const and Constant Pointer

A constant pointer is a pointer that cannot change the address which it stores.   Syntax: datatype *const pointer_name;  Example:  int a=10,b=20;  int *const ptr;  ptr=&a;  ptr=&b; //here the address in ptr cannot be changed so not allowed . Pointer to constant  Address in the pointer can be changed but the value of the data element which the pointer points cannot be changed.  Syntax: const datatype * pointer_name;  Example:  int a=10,b=20;  const int *ptr=&a;  *ptr=100; //here the value which ptr points to cannot changed so not allowed ptr=&b; //allowed Pointers and Const  The previous two can be combined to form a constant pointer to constant  Syntax: const datatype *const pointer_name; Example:  const int * const ptr;  int a=10,b=20;  const int * const ptr=&a;  *ptr=100; //not allowed  ptr=&b;//not allowed  Here the value which ptr points to cannot be changed an...

India’s Landmark Era of Research, Innovation & Deep-Tech Growth

India’s research and development (R&D) ecosystem is undergoing a historic transformation. The country is shifting from a primarily public-funded research model to a private-sector-driven, innovation-led economy , backed by massive strategic investments. This transformation directly supports the national vision of Viksit Bharat @ 2047 , with Investment and Innovation identified as two of the four core growth engines in the 2025–26 Union Budget . The focus is clear: ➡ Build global innovation leadership ➡ Strengthen deep-tech infrastructure ➡ Attract private capital into strategic sectors ➡ Create a strong research-to-commercialisation pipeline 🧠 Strategic Institutional Foundations Anusandhan National Research Foundation (ANRF) Operational since 2024 Target: ₹50,000 crore mobilisation over 5 years Purpose: Bridge academia–industry collaboration Provide strategic national direction in science & technology Enable interdisciplinary research to solve complex societal challenges R...

Policy vs Innovation Matrix - India

Policy vs Innovation Matrix Policy vs Innovation Matrix that shows the structural difference between policy intent and actual innovation output — and how India’s model is transforming to match global innovation systems . From Paper Policies to Product Power 🧱 Traditional Indian Model (Old System) Policy Layer Reality Innovation Outcome Policy Vision Strong national policies Vision without execution pipelines Funding Govt-dominated funding Limited capital availability Risk Culture Risk-averse systems No deep-tech experimentation Research Academic publications Low commercialization Industry Role Minimal R&D involvement Weak private innovation Infrastructure Limited labs & compute Research bottlenecks Talent High-quality brains Brain drain Commercialisation Weak tech transfer Research stays in journals Scale Fragmented schemes No national scale impact Speed Slow approvals Innovation delays Result: ➡ Policy existed ➡ Innovation did not scale ➡ Research stayed inside institutions ...

The 175 Billion Parameter Question: 5 Surprising Lessons from GPT-3

The 175 Billion Parameter Question: 5 Surprising Lessons from GPT-3 Is scale alone enough to transform artificial intelligence? When GPT-3 launched with 175 billion parameters , it didn’t just break records — it reshaped how we think about intelligence itself. The End of Specialized AI: A Paradigm Shift For nearly a decade, artificial intelligence advanced through specialization. Engineers built narrow systems: one for translation, another for summarization, another for classification. Each required curated datasets and task-specific fine-tuning. This approach worked — but it was fragile. Unlike humans, who can understand new tasks from a single instruction, traditional AI systems required thousands of labeled examples. GPT-3 changed that equation. By scaling a single autoregressive model to 175 billion parameters, researchers demonstrated that size itself could unlock general-purpose adaptability. Instead of retraining for each task, GPT-3 adapts...

What are the three risk levels AI poses to humans

Ravi Pandit ( KPIT Founder ) identifies three levels of risk that AI poses to humanity, ranging from individual cognitive decline to broader societal and philosophical challenges: 1. Dumbing Down the Population The first level of risk is that AI may "dumb us down" by causing humans to offload essential cognitive tasks to machines. Pandit provides several examples of this: Memory Loss: People no longer remember telephone numbers because they have "delegated" that memory to computers. Loss of Basic Skills : Calculation abilities, such as knowing multiplication tables, are being lost as people rely on technology. Mechanised Thinking : As computers begin to understand broad instructions (talking to them "like an adult"), the fundamental skill of coding—which requires precise logic—may diminish among humans. 2. Disruption of Society The second level involves the disruption of social and economic structures . Key concerns include: Income Disparity : ...

Pointer to Pointer (Multiple Indirection)

Pointer which holds address of another pointer is called as pointer to pointer. It is also called as double pointer.  Syntax: int **ptr_to_ptr;  Example:  int i=10;  int *ptr; //pointer to an integer  int **ptr_to_ptr: //pointer to a pointer  ptr=&i;  ptr_to_ptr = &ptr;  C Program to illustrate pointer to pointer.  #include<stdio.h>   void main()  {  int i=10,*p1,**p2;  p1= &i;  p2=&p1;  printf(“\n the value of i is %d %d %d ”,i,*p1,**p2);  printf(“\n the address of i is %u %u %u”,&i,p1,*p2);  }  In above program p1 is pointer and p2 is a pointer to pointer.  Pointer to pointer is often used in handling of strings, multidimensional arrays.  Also Read Static and Dynamic Memory Allocation Memory Leak and Dangling Pointer Memory Allocation for 2D Array Dynamic Memory Allocation Pointer Constant and Constant Pointer Pointer Declarations and the...