Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Write a program to create a binary file and store the following data "hello", 0x0030,'1', 1.234 Using visual studio examine the binary file and note how the day is stored Answer #include stdio.h #include stdlib.h #include string.h void main() { Version 1.0 Function : binary file handling Modifications: none*/ /* Define I/O streams */
FILE *fptw; char prompt; char data1[6]; int data2; char data3; float data4; strcpy(data1,"hello"); data2 = 0x30; data3='1'; data4 = 1.234; fptw = fopen("program.txt","wb"); if (fptw == NULL) { /* Check for error */ printf("Cannot write the file program.txt\n\r"); exit(1); } /* Writing binary data in file*/ fwrite(data1,sizeof(char),strlen(data1),fptw); fwrite(&data2,sizeof(int),1,fptw); fwrite(&data3,sizeof(char),1,fptw); fwrite(&data4,sizeof(float),1,fptw); fclose(fptw); printf("Press and key to exit \n\r"); scanf("\n%c",&prompt); }
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
C Program for FUNCTION OF MERGE #include conio.h> #include stdio.h> char cot(char a[],char b[]); void main() { char a[50],b[50]; clrscr()
Virtual Functions The keyword virtual was previously used to resolve ambiguity for a class derived from two classes, both having a common ancestor. These classes are known as v
Project Description: I posted listings on a site that is like eBay but for video games. I post the similar listing many times daily, but need something that will let me post
C program to print R diagonal triangle: #define rows 3 #define cols 3 void main() { int i=0,j=0; int arr[rows][cols];
em Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ''Content here, content here'', making it look like readable English. Many desktop publis
You are required to give C++ implementation of following classes: 1. PropertyCategories 2. Plot 3. Flat 4. House Following is the description of all data member and member funct
to compute the net pay of an emplyee, given his/her pay rate, number of hours and tax rate
A: This is a name that acts as an alias, or alternative name, for a beforehand defined variable or an object. prepending variable along with "&" symbol makes it as reference. fo
Both malloc & new functions are utilized for dynamic memory allocations & the basic difference is: malloc need a special "typecasting" while it allocates memory for eg. if the poin
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd