Search results

  1. V

    Scanning of numbers and string in c

    many compiler does not have inbuilt string.h library like keil. I just want to write my own string comparison routine I have visited in this link https://fresh2refresh.com/c-programming/c-function/string-h-library-functions/ There are information about string.h library but I didn't understand...
  2. V

    Scanning of numbers and string in c

    hello.c: In function 'main': hello.c:10:10: warning: comparison between pointer and integer if(name == "root") ^~ hello.c:15:16: warning: comparison between pointer and integer else if (name == "marsh") I understand the use of switch case statement in c programming #include...
  3. V

    Scanning of numbers and string in c

    I am little bit confuse in the scanning of numbers and string in c programming. I wrote program to scan numbers from user #include<stdio.h> int main (void) { int number; printf("Enter user input :"); scanf ("%d",&number); if(number == 1) { printf("Number is...
  4. V

    Pointer and it's use

    Look at this program This program store array element using pointer #include <stdio.h> int main(void) { int i; int array[5] = {6, 2, 3, 9, 5}; int *pointer = array; for (i = 0; i < 5; i++) { printf("%d", *pointer); pointer++; }...
  5. V

    Pointer and it's use

    Sorry but still I am confuse. If I compare my program with your answer I don't understand what's happening here. I don't know where I am doing mistake
  6. V

    Pointer and it's use

    I have gone through this discussion but still have confusion. I wanted to know when do you feel in program that you have to use pointer and what's the reason behind it. Why use pointers over normal variables?
  7. V

    Pointer and it's use

    Generally I know pointer is use to store address of variable. I can write basic program for pointer but I am still confuse I don't understand actually what's the real real use of pointer and where we will use pointer in programming. #include <stdio.h> int main(void) { int variable = 10...
  8. V

    What's the best way to learn any programming

    Hello I think it may be stupid question but thought it should be ask here. I know for learning any programming language we have to know about supported IDE. There are many sample code available on internet. Then we started to run some sample program to check results. After that we start to...
  9. V

    confuse on Size of array in c program

    Now I understood. Thank you very much
  10. V

    confuse on Size of array in c program

    If you look in the program, you will see two array sizes, one is array[4] and other is size of array : (8 user define) How will you decide what could the size array[number] ? What changes happen if I change number like 2,4,6,8,9.. in given program ? will it still store only 8 numbers ?
  11. V

    confuse on Size of array in c program

    I am confuse on size of array declaration #include<stdio.h> int main (void) { int i, array[4], size; /* print size of array on screen */ printf ("size of array : "); /*get size of array from user */ scanf ("%d", &size); for (i = 0; i < size; i++) { /* print the...
  12. V

    Programming Languages

    I think you need to understand basics logic of device. on which logic device work. for example you know how does led work. if you want to turn on led. you will give supply and if you ant turn of led. you will remove power. Now suppose one led is connected to pin of microcontroller. so you have...
  13. V

    Automatic object tracing system

    Do we have to make app or we can use already developed app ?
  14. V

    Automatic object tracing system

    Have you seen my first post. I have clearly mentioned that I want to design object tracking system. after that I gave example of goats. I think my example was wrong. I should take the example of vehicle tracking systems You have seen in the movie vehicle have a GPS system and the location of...
  15. V

    Automatic object tracing system

    I have all that is needed to make a project. I have bought 8051 and various device I am planning to purchased some more modules like (GPS, RFID, ESP2866, ARM ). I have been programmed 8051 microcontroller. I have been written program's for interfacing devices. Some time you learned from your...
  16. V

    Automatic object tracing system

    OK suppose, goats go to the mountain to feed the fodder. Sometimes it happens that they are lost .So suppose that I want to make systems for them. when a goat is lost, I can see his location on my PC. I can also use the mobile but I want to use PC. I made a system in which Microcontroller is...
  17. V

    Automatic object tracing system

    I Just want to know about this. Can we do this and yes then whats the way to implement this system?.
  18. V

    Automatic object tracing system

    I want to design automatic object tracing system. I want to see the location of object on my PC. I think I have to connect GPS to Microcontroller but problem is that how will PC communicate with tracking system. I think I can do it by using internet. I think, system must be connected to the...
  19. V

    Uart communication protocoals

    I have understood from your reply that I have to set the baud rate. I have to Set baud rate to 9600 at 11.0592MH I don't understand how the baud rate being set in program. Is the following line set baud rate in the program? TH1 = 0xFD; TL1 = 0xFD;
  20. V

    Uart communication protocoals

    I read, when we initialize uart then we set the timer value. Like mention in following program.The timer mode is set in the program. Lowe value high value is loaded in program. But it does not understand how the timer setting is related to the uart communication? // Initializing UART in 8051...
Top