- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
i want to write a code which determines whether a file is executable or relocatable.....i have try this code but its now working ... #include<stdio.h> #include<elf.h> int main() { int fd; elf32_ehdr myhdr; fd=open("abc.c"); if (myhdr.e_type==ET_RELl) { printf(:relocatable"); if (myhdr.e_type==ET_EXEC) printf(executable"); else printf(:other type"); return(0); } |
|
i want to wrie a code which determines whether a given input is relocatable object file or executable file? i have knowledge about C .....but this task is totally new for me. can anyone please guide me? |
|
i am new in c . i have made the code in C++.its working fine. the only problem i face i got error in printf statment. please tell me how can i change cout statement into printf [code] #include<iostream> #include<cmath> using namespace std; int main() { int x=0; for(int i=0;i<=6;i++) … |
|
i have just started c language and i have only study "while" and "for" "if else" please help me in this question using loops(without usuing arrays) write a program that prodeuce the following output: 0 0 1 0 1 2 0 1 2 3 0 1 2 3 4 0 … |
|
hello everyone. i am in a great need fo hamming disnatce code in nasm(8088). i will be very thankful |
|
; this code gereates maximum factorial of 8 decimal ; since, A is a 16-bit register and can hold max value of ;65535 dec (255h). ; MOV A,#8d ; value for the factorial (1-8max) MOV B,A ; B=A MOV C,#1d ; C=1 here: ; LOOP SUB B,C ; B-1 MUL … |
|
some of the characteristics of a book are title,author,publiser,ISBN,price and year of publication.design a class booktype . 1) each object of the class booktype can hold the following information about a book:title upto four authors,publisher,ISBN,price and number copies in stock. To keep track of the number of authors ,add another … |
|
i am new in programming . i have a clock code. but want to modify it. when user press "0" it increment in time by 5min and when press "1" increment time by 10 min _______________ [CODE]//The complete program listing of the program that defines //and uses the class clockType … |
|
i am doing a problem . take character dynamic of size 10.when user enter 11th element.it increment the array size to 20. when user enters 21st element array size increases to 30 and so on int main(){ char *p; p=new char []; int size; for(int i=0 ;i<10; ++) cin>>p; size=strlen(p); … |
|
please help for this code. if anyone have it please send me. thanks |