• <button id="n9woc"><object id="n9woc"></object></button>

    1. <tbody id="n9woc"></tbody>
    2. <button id="n9woc"><object id="n9woc"></object></button>

      <em id="n9woc"></em>

      Questions tagged [c]

      C is a general-purpose programming language used for system programming (OS and embedded), libraries, games and cross-platform. This tag should be used with general questions concerning the C language, as defined in the ISO 9899 standard (the latest version, 9899:2018, unless otherwise specified — also tag version-specific requests with c89, c99, c11, etc). C is distinct from C++ and it should not be combined with the C++ tag absent a rational reason.

      Filter by
      Sorted by
      Tagged with
      -1
      votes
      1answer
      8 views

      C program works fine when compiled in windows but behaving unexpectedly in linux

      I wrote a simple program to calculate simple interest for my CS class but it's behaving unexpectedly when I compile it in linux as shown below: The program: #include<stdio.h> int main() { //...
      0
      votes
      1answer
      11 views

      Executing a makefile command from meson?

      I wanted to try to execute 'make install' command from a makefile automatically with meson. I tried the following in a meson.build file: r = run_command('make install') if r.returncode() != 0 ...
      0
      votes
      3answers
      30 views

      Display the element appearing at even and odd subscript position separately in an array element in C programming

      The question is: Write a program that will read an array of integers. The program should display the elements appearing at even and odd subscript position separately. This is program from the book but ...
      0
      votes
      0answers
      9 views

      Asp.Net Framework MVC 5 - How to prevent the entire View from being reloaded when uploading files

      Before click After Click I'm trying to update only in Modal (Bootstrap) with the list of files I just uploaded. I am returning a partial view in Json. The problem is that the entire View is reloaded ...
      0
      votes
      0answers
      13 views

      [netbeans 12.1][templates][c header] — errors when creating new file based on this template

      /* * File: ${name}.${extension} * Author: ${user} * * Créé le ${date}, ${time} * */ #ifndef ${GUARD_NAME} #define ${GUARD_NAME} // *********************************************************...
      0
      votes
      1answer
      22 views

      Rewrite file at certain system time daily in C

      How to automate/schedule file operations(rewrite/delete whole content in file) daily at a certain system time (0000 hours / 12.00 a.m.)?
      0
      votes
      0answers
      18 views

      Semaphore and mutex loop

      I have two functions that I use semaphore and mutex for a variant of classic the sleeping barber problem. But when I run the program, the program never ends. Function 1: the actions of TA (barber for ...
      0
      votes
      2answers
      40 views

      Error: assignment to expression with array type, when assigning values to an array

      I would like to insert value into the array's last position. So, I created the function insert. This function returns the new array. In this code, I would like to insert value=0 into array={1}'s last ...
      0
      votes
      2answers
      47 views

      Manipulation of Strings inside a function

      I've been stuck at this for a while. Let there be an array of strings declared by user: #define LENGTH 3 int main() { char* hohoho[3]={"string1","string2","string3"}; ...
      0
      votes
      1answer
      19 views

      How do I assign an u_int32_t IPv4 address to the address parameter of sockaddr_in in C? (Socket Programming in C)

      I've managed to get the broadcast address as a u_int32_t, and my goal is to assign the broadcast address to the saddr.sin_addr.s_addr parameter so I can turn it into a string with inet_ntoa(): struct ...
      0
      votes
      0answers
      46 views

      Having a hard time editting a file in C

      I am trying to write some code that is supposed to add kernel parameters in the file /etc/default/grub inside this line: GRUB_CMDLINE_LINUX_DEFAULT="quiet pci=noaer resume=UUID=57661f93-9206-48ba-...
      0
      votes
      0answers
      10 views

      libnl: rtnl_link_change - operation not supported

      I'm trying to use libnl for a project, but I'm having issues with calls to rtnl_link_change, as it always returns a non-zero code that describes that the operation is not supported. For example, here ...
      1
      vote
      2answers
      68 views

      scanf_s is not included in C11

      I'm using Dev-C++ 5.11 and using compiler options to compile to C11. I'm having trouble using the scanf_s function. I've tried <stdio.h> as well as <stdlib.h>. Is there anything in the ...
      0
      votes
      0answers
      20 views

      Arduino project- PIR sensor movement [closed]

      My project is a covid safety detector using a PIR sensor and an ultrasonic sensor in Arduino. This is what I do: First, when the PIR sensor detects a human(HIGH), it will send off a signal to the ...
      0
      votes
      1answer
      29 views

      How to write a function that takes a line o text, and saves each word in a pointer to pointer to char and returns that pointer

      I am trying to write a function that is given a string of text (which is to be a shell command) and now I just need to extract words, so delete spaces and save each word in a pointer to pointer to ...

      15 30 50 per page
      1
      2 3 4 5
      23181
      欧美日韩国产在线一区二区_午夜短视频在线观看_亚洲国产欧美日本视频_亚洲精品高清视频在线观看