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); }
Define Static Storage Class in C Programming? The Static declarations have distinct and important uses. This allows the local variable to keep its previous value when the block
drawbacks in assignments in engeenirng
Define Register Variables - Low Level Programming? The Register variables are a special case of an automatic variable. The Automatic variables are allocated storage in the memo
Differentiate between a template class and class template in C++? Ans) Template class: A generic definition or a parameterized class not instantiated until the client gives the
Default Arguments A default argument is a value that is automatically assigned to a formal variable, if the actual argument from the function call is omitted. e.g. void
Suppose we use Lists to represent a movie which has a title, cast and year. For example, the following list represents the movie, "Die Hardly", with the cast "Bruce Willing" and "T
Explain U s e r - D e f i n e d D a t a T y p es? C has Union and Structure as user-defined data types. C++ has class which looks like structure with a
Need FTP Upload and MySQL Project Description: We are in need of an executable application that will be execute as a scheduled task on Windows Server 2008 R2 and can perform
Q-What happens while a function throws an exception which was not specified through an exception specification for this function? A: Unexpected() is called, which, by default, w
Add words in Dictionary: void Dictionary::add( Object& objectToAdd ) { if( !objectToAdd.isAssociation() ) ClassLib_error( __ENOTASSOC ); else
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