AllExperts > C 
Search      
C
Volunteer
Answers to thousands of questions
 Home · More C Questions · Question Library  · Free Encyclopedia ·
More C Answers
Question Library

Ask a question about C
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
About Joydeep Bhattacharya
(Top Expert on this page)

Expertise
Ability to solve C and Data Structure problems and puzzles with simple and easy to understand logic.

Experience
C, C++, Java, Data Structure, PHP, Web Designing

Organizations
http://www.scodz.com Designation: webmaster

Publications
http://www.scodz.com

Education/Credentials
Master of Computer Applications

Past/Present Clients
http://analysingc.50webs.com http://www.funforu.com

   

You are here:  Experts > Computing/Technology > C/C++ > C

Questions Answered By Expert  Joydeep Bhattacharya 
In Category  C

SubjectDate Asked

array of structure11/14/2009
  Q: sir, i m pawan getting a problem in the follwing program . my problem is when i ask a user to ...
  A: There are many errors in the code u have sent please remove the same and try again struct student { ...
c programming9/13/2009
  Q: i m a btech student(5th sem) and i m preparing for GATE. i have a problem main() { ...
  A: The question needs some more info this program should work in turbo c which compiler are u trying ...
PRINT PASCAL TRIANGLE IN 'C'9/3/2008
  Q: STRING. YOU CAN USE ONLY FOR LOOP FOR THIS PROGRAM
  A: You can try this link http://search.scodz.com/SearchPage.php?page=1&type=programs&qry=PASCAL This ...
Question8/13/2008
  Q: I just wanted to know what is the difference between local and global variables. Also in which ...
  A: Any variable declared out side the scope of any function is called global variable and one declared ...
cannot run c++7/5/2008
  Q: I'm using an asus m2n mx se motherboard.i cannot run c++ on my system.after i have typed the ...
  A: I think your problem can be solved but i want you to follow the debug method i will suggest you ...
data structure7/4/2008
  Q: can i have the program of the following questions, 1. to find the postfix expression? 2.insertion ...
  A: For this type of stuff you can consult my personal website http://www.scodz.com This is my personal ...
data structure6/22/2008
  Q: a pointer of a node present in between a single link list is given. no start pointer is given. we ...
  A: This is impossible, people might ask you this question to test your level of confidence. if you need ...
pascal triangle using c6/21/2008
  Q: respected sir , I Abhishek srivastava from kanpur institue of technology ...
  A: Refer to my personal website for this program that might be a very handy stuff for you. This is my ...
c6/12/2008
  Q: what are the advantages and disadvantages of function in c language?
  A: Advantages: Your code looks clean A part of code that requires multiple compution can be done at ...
disable keyboard using c6/9/2008
  Q: how can i disable or enable particular keys of keyboard using c code in 16 bit compiler
  A: I didn't inderstand hat exactly you are looking for if you wanna handle the keyboard to be turned on ...
help..3/18/2008
  Q: uhm..can you please help me make a program using graphics.it's like a story book like fairy tales ...
  A: Firstly the program looks very simple, if you know graphics programming put a loop to create a cool ...
how to creat .exe using c3/14/2008
  Q: sir i have written c prog on linux platform i want convert it in to .exe file and use it on ...
  A: As you know linux don't create exe files and if you need an exe file and use it in windows system ...
how to creat .exe using c3/12/2008
  Q: sir i have written c prog on linux platform i want convert it in to .exe file and use it on ...
  A: As you know linux don't create exe files and if you need an exe file and use it in windows system ...
please help3/8/2008
  Q: When I run this program: #include<stdio.h> #include<conio.h> int main() { int km, i; float res, lt; ...
  A: The problem lies in line number 17, scanf("%f",<); this line i think should be replaced by ...
need for a solution3/4/2008
  Q: respected sir i have question,which i sbelong to c,question is what is the source code of this latin ...
  A: Try this out int i,j,k; for(i=0;i<4;++) { for(j=0;j<4;j++) { printf("%d",(((i+j)%4)+1)); } ...
sample code pls..2/27/2008
  Q: can you please help me make a program that will use a pointer where in the user can input an array ...
  A: May be I have missed out your question. Its not a problem you can directly keep contact with me ...
sample code pls..2/23/2008
  Q: can you please help me make a program that will use a pointer where in the user can input an array ...
  A: will debug and compile your code and will definetly send back to you as soon as possible. But before ...
sample code pls..2/20/2008
  Q: can you please help me make a program that will use a pointer where in the user can input an array ...
  A: I remember you and remember you well ... how can I forget my frnds !!! This is the answer to your ...
about file handling2/7/2008
  Q: sir, how to execute *.exe file using file handling in c, fopen("c:///*.exe").....not working.. ...
  A: If you are using Turbo C then try using system() to execute exe file the system function takes dos ...
Programing In C1/17/2008
  Q: 1.write a program to copy of a string. 2.write a program to find the length of a given string. ...
  A: Check out this link here you can find all the string function inluding the three you are looking for ...
Kbc program1/10/2008
  Q: sir, the program you sent me was very good but i haven't done most of it in school!... i haven't ...
  A: Well I didn't knew that you don't want such a complex one please try this out and lemme know you can ...
C Language1/1/2008
  Q: I want a complete totorial on C Language for my study for BCA. I have many queries about C Lang. So ...
  A: i can suggest you something better than sending a doc or pdf file i.e. you can join up my personal ...
ask a question12/13/2007
  Q: sir, if i want to delete unnecessary space from the entered string then which code or condition ...
  A: The function you are talking about is know as trim function that deletes spaces from the front and ...
Turbo c12/12/2007
  Q: iam a student of computer system enginerring iam facing problem how to use Arrays in programming.
  A: To use array, you have to first create an array like this datatype name[size] i.e. int arr[10] where ...
factorial and fibonacci12/6/2007
  Q: how can i use functions in C for factorial and fibonacci of the number entered by the user?pls help ...
  A: Here is the entire program for you and I am very sorry dear, for late reply I know this might be ...
sample code12/6/2007
  Q: .thank you for the help.but what i need is a program in which on the main menu,you'll choose from ...
  A: here is the entire program for you #include<conio.h> #include<stdio.h> void fact(int no) { int i, ...
factorial and fibonacci12/5/2007
  Q: how can i use functions in C for factorial and fibonacci of the number entered by the user?pls help ...
  A: Check this two link this mighty be a handy one for tommorow and in case you have problem with the ...
C11/29/2007
  Q: main() is a user defined function how is it different from other user defined functions? If possible ...
  A: If you know how to pass values in command line then simple pass 3 integers in this case void ...
C11/26/2007
  Q: main() is a user defined function how is it different from other user defined functions? If possible ...
  A: main is defined as the entry point if you know how to design a compiler then you will be able to ...
c programming/recursion11/22/2007
  Q: hello i would like to know how to perform tower of hanoi using recursion thank u
  A: For Tower of Hanoi program please refer to this link ...
question11/22/2007
  Q: can you give me a simple program in c that will bell or use bell (07 in ascii code)? thanks
  A: check out this one ... void main() { char ch = 7; printf("%c",ch); } just listen while you run the ...
C11/22/2007
  Q: char has a range -128 to 127. it can be stored in 1 Bit= 8 bytes how can we store -128 into 8 bytes
  A: check out this code void main() { char c; c = -128; printf("%c",c); } this is how you store -128 ...
C11/22/2007
  Q: main() is a user defined function how is it different from other user defined functions? If possible ...
  A: There is no difference between user defined function and main function, main is just like any other ...
Flash digits11/19/2007
  Q: Write a program to display count values from 0 to 100 and flashes each digit for one second. Reset ...
  A: Here is your program #include<stdio.h> #include<dos.h> void main() { int i; for( ; ; ) { ...
Please guide me on learning C or C++11/19/2007
  Q: I am looking into learning SAP BW functional, and I am wondering how important it is to have ...
  A: It would be advisable to learn programming slowly and its better to start of with c knowing how to ...
Please answer me sir11/2/2007
  Q: i would really appreciate it if you could help me in this project.I need to write a code in a source ...
  A: You can find out the solution to this problem in this link ...
Type Conversion10/29/2007
  Q: could u tell me how an integer type value convert into char type or the generalized question the ...
  A: Lets convert an integer to a char int x = 3; what gets stored inside this 2 bytes 000000000 00000011 ...
question on program10/12/2007
  Q: how to print this following format: 1 01 101 0101 10101 010101 .... ANSWER: hi Saritha You can ...
  A: Simply change the start point void main() { int i, j, n = 6, c = 1; for(i=0;i<n;i++) { ...
question on program10/3/2007
  Q: how to print this following format: 1 01 101 0101 10101 010101 ....
  A: You can refer to this website for many such programs its my personal website at http://www.scodz.com ...
explain code pls!!19/25/2007
  Q: This programme allows the user to add, subtract, multiply, or divide, but does not use a menu. ...
  A: Line 1: Its infinite loop coz the programmer wanna do this operation infinites times as long as the ...
c++ compiler usage problems9/4/2007
  Q: respected sir , whenever i tries to compile any program on my compilers(both borland and turbo ...
  A: This is a common problem start the editor goto directories menu and change the folder paths ...
i need help on memory allocation..8/9/2007
  Q: i am only a beginner on memory allocation. we are asked to write a c program that explicitly stores ...
  A: Firstly I didn't found any code with this question the solution to this is void main(); { int *p, ...
No Repeated Random Numbers6/30/2007
  Q: I want to create a program in C, which generates random numbers, but each number should be unique ...
  A: For solving this problem you need to create an array where the generated number will be stored and ...
c problem6/28/2007
  Q: I am Pratibha doing my M.Tech project,i want to know tht how the library of files is created in ...
  A: You can create library file in Turbo C just follow the steps here i am creating a header file called ...
handling of large number in c++6/28/2007
  Q: I am a student of M.Sc(maths) in IIT(DELHI). i am working on a problem finding quadratic residue for ...
  A: Firstly I would request you not to call me sir coz I am also a student of MCA from Kolkata. The ...
arrays6/24/2007
  Q: How are you? I have a C question. I declare an array int myarray[300]; I want to store large ...
  A: There is no special header file needed I think there is some problem with your TC you can download ...
arrays6/22/2007
  Q: How are you? I have a C question. I declare an array int myarray[300]; I want to store large ...
  A: I am fine, How are you ? when you want to use large numbers don't go for integer array try with long ...
I need a solution6/18/2007
  Q: How to write linked list program in c
  A: If you are looking for a program on linked list I would like you to join my website coz thats the ...
taking hard copy6/17/2007
  Q: sir, please tell me how can take a hard copy from within my aplication, i am using TC as devlopment ...
  A: I didn't get you what do you exactly mean my hard copies if you are talking about taking print outs ...
memory allocation hlp plz...6/10/2007
  Q: how can i allocate memory over 64K...? is it possible to allocate avail mem in RAM... i use turbo ...
  A: To the best of my knowledge it can be can be done with farmalloc coz farmalloc accept an unsigned ...
C or C++ : better options for Embedded systems6/2/2007
  Q: Form last 2 years, I am working on embedded systems project. we write our programs in C or assembly. ...
  A: Needless to mention that C is indeed a very nice language but while working on embedded system I ...
exit() function5/29/2007
  Q: We generally pass 0 or 1 values to exit() for success and failure respectively. But I saw few ...
  A: exit(0) generally means a clean exit without any error message where as anything other than 0 means ...
c language5/24/2007
  Q: why c language name so? ANSWER: Hi Amit I believe Dennis Ritchie can answer this question ... but ...
  A: Int has a memory of 2 bytes which is equivalent to 16bits now coming to the binary part of it which ...
C/C++5/22/2007
  Q: Joydeep! Can you please give me code to explain multiple inheritances in both C and C++?
  A: Inheritance is a feature of OOP hence C++ supports it and not C. Where a classA is created from ...
data structure5/17/2007
  Q: ...i am struck in between.... can u get me source code.....
  A: What type of graphical implementation are you looking for postfix to infix conversion you can find ...
Incompatible type warning5/14/2007
  Q: void foo(const char **p) { } int main(int argc, char **argv) { foo(argv); ...
  A: There seems to be no problem with your code but still I have tested this code with Turbo C and its ...
restart program5/8/2007
  Q: I was wondering if you could help me. I have a simple C program that consists of only one function. ...
  A: This code will solve your problem #include<stdio.h> #include<conio.h> #include<string.h> void ...
c pointer problem5/7/2007
  Q: My reverse string program is crashing on "*str(str+i)=*(str+j);" line in the loop char* ...
  A: I have modified your code a bit please check out and in case of any doubt please feel free to ask me ...
infix to postfix5/4/2007
  Q: can u help me how to write a simple program to convert a infix expression to postfix
  A: You can find out your solution here ...
memory allocation5/3/2007
  Q: How are you? I am trying to write a program that operates with large arrays. The code below ...
  A: Try this code all the bugs are fixed in this code #include <stdio.h> #include <string.h> ...
memory allocation5/3/2007
  Q: How are you? I am trying to write a program that operates with large arrays. The code below ...
  A: I am fine .... How are you ? I have made certain changes to your program try this out #include ...
large array4/24/2007
  Q: I was wondering if you would be able to help me. I'm writing a C program that has to operate with a ...
  A: Basically malloc and calloc takes the variable as unsigned int thats the reason they fail to ...
large array4/24/2007
  Q: I was wondering if you would be able to help me. I'm writing a C program that has to operate with a ...
  A: There is a solution to your problem you have to create the array dynamically using a pointer to a ...
fread()4/23/2007
  Q: Hey, I'm trying to read a file one byte at time but I want the computer to forget each byte by ...
  A: char *r; for (i=0; i<verylargenumber; ++i) { fflush(stdin); //for clearing the buffer ...
INCLUDE4/18/2007
  Q: What is the difference between the two header file declaration formats: #include <string.h> and ...
  A: #include<stdio.h> looks for the header file stdio.h in the folder specified in you directory ...
read BMP4/17/2007
  Q: I found this C code on the internet. They claim that it works (reads bmp files) but when I run it, ...
  A: What compiler are you using to test your code ... If you are using Turbo C/C++ Compiler then main is ...
Recursion vs Iteration4/10/2007
  Q: When i perform a task using either recursion or iteration(looping) (for Ex: printing of Numbers), ...
  A: 1000 out of 1000 time iteration is better than recursion the reasons are listed below: 1. Calling a ...
about exe files3/27/2007
  Q: How to create a exe file of a c application?
  A: The exe files automatically gets created during compilation if you have your turbo c installed in ...
C sample code please3/25/2007
  Q: how can I compute for my general average if my Midterm grade is 98 and my final grade is 93??..i ...
  A: If you can provide me with a bit more details about the .4 and .6 stuff about your grading system in ...
Implementing 2 stacks with one array3/22/2007
  Q: How would you go about implementing 2 stacks with one array? For example, the user enters in a ...
  A: What i suggest you is to use four flag variables to mark the start position of the first stack and ...
Implementing 2 stacks with one array3/22/2007
  Q: How would you go about implementing 2 stacks with one array? For example, the user enters in a ...
  A: Even I have never faced a question like this before but i think this could be done with a little bit ...
alphabetical order3/5/2007
  Q: I'd like to know what strategy is best to order words in alphabetical order using C. More ...
  A: While sorting 10000 words one major factor becomes the memory if you have enough memory to store all ...
PLEASE HELP3/5/2007
  Q: I cannot figure this out!!!!! Write a C program that determines the kilometers per liter for 4 ...
  A: #include<stdio.h> #include<conio.h> void main() { int km, i; float res, lt; clrscr(); ...
need to difference arrays in an input.txt file3/5/2007
  Q: How can I open a file input.txt with the form __________ n word word word abcdefgijl ijklmnñov ...
  A: When you are trying to create the array dynamically after reading the file's first line where you ...
c compiler2/26/2007
  Q: I used the Turbo C to compile some programs that I found form the internet ...
  A: Have you modified the code or just copy pasted it and executed it ... If you have just copy ...
c2/23/2007
  Q: sir how would we run the exe filesir i just to know how would i create an exe file in c ...
  A: You can run an exe file using a C program also here is the program to do so ... This is mainly ...
c2/23/2007
  Q: sir i just to know how would i create an exe file in c
  A: When ever you are writing a C/C++ program the exe and obj gets created automatically try looking ...
c compiler2/23/2007
  Q: How are you? I'm only beginning to learn programming in C. I was wondering if you could suggest a ...
  A: If you are new to C/C++ I guess its great to get started with Turbo C/C++ you can also refer to ...
HELP2/13/2007
  Q: .. i just want to ask somehelp from experts like you... this is the question... We were asked to ...
  A: I have been planning to solve this problem for a long time .. thanx for giving the splendid ...
HELP2/2/2007
  Q: How to do addition of matrices which allows the entry of the numbers of rows and column of the ...
  A: You can solve this problem in two possible way one is creating a two dimensional array of integers ...
How to extract the essential data1/29/2007
  Q: I have encountered a problem when trying to extract the correct data from a .txt file...using visual ...
  A: For this type of problems I would suggest you to take the table data's in a structure after parsing ...
C & common Doubts11/2/2006
  Q: can u plz hep me to clarify foll. questions: 1)What is use of NULL pointer otherthan that error ...
  A: Ans 1: null pointer is distinguishable from all other pointer values and which is guaranteed to ...
Opening a folder10/30/2006
  Q: I need to open a folder and read all the listed files. How to do using C. Thanks Govind
  A: Check this out this may help you #include <stdio.h> #include<conio.h> #include <dir.h> void ...
C common Questions10/29/2006
  Q: can u plz hep me to clarify foll. questions: 1)What is use of NULL pointer otherthan that error ...
  A: Ans 1: null pointer is distinguishable from all other pointer values and which is guaranteed to ...
String Reverse function in C9/29/2006
  Q: I am a beginner in C. I am trying to write a functin in C to reverse a string in place.This is the ...
  A: This is I guess what you are looking for char* strrev(char *s) { int i, j; char *t; strcpy(t,s); ...

All Questions in This Category

Email this page
     
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2006 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.