Skip to main content

Posts

Showing posts from January, 2022

Unable to assign structure variable to another structure variable

  I am unable to assign one structure variable ( R2 = R1 ) to another structure variable. Please help me to understand, why the following program is not getting compiled and what is the best way to assign one structure variable to other? I'm tired with the pointers way. Still code is not getting compiled... # include <stdio.h> struct Record { int ID; char Name[]; } R1 = { 1234 , "King" }, R2; R2 = R1; int main () { printf ( "%d %s \n" , R1.ID, R1.Name); printf ( "%d %s \n" , R2.ID, R2.Name); } # include <stdio.h> struct Record { int ID; char Name[]; } R1 = { 1234 , "King" }, *R2; R2 = &R1; int main () { printf ( "%d %s \n" , R1.ID, R1.Name); printf ( "%d %s \n" , R2->ID, R2->Name); }

qatar most vidaly used programming language

  Hire Top  PHP  Development Company in Qatar. The PHP Hypertext Preprocessor (PHP) is a programming language is one of the most widely used language for developing web based software applications as it can be easily embedded into HTML code. The most significant feature of PHP is it supports wide range of databases