Questions tagged [cc]

cc is a common name for a C compiler executable or driver. It is the default for the $(CC) make variable. For email CC fields, please use [carbon-copy]. For Adobe CC, use [creative-cloud].

290 questions
-3
votes
2 answers

What is wrong with the following c code? the gcd stops working after i enter into the loop

#include int gcd(int a, int b); int lcm(int x ,int y); int main() { int num1, num2, k, hcf,max,n; scanf("%d",n); for (k=0;k
Yusuf Jk
  • 1
  • 1
  • 4
-4
votes
2 answers

How to specify the name of an object file

When I intuitively try to run such command cc -c source.c header.h -o a_name_different_than_source.o the following error is thrown cc: cannot specify -o with -c, -S or -E with multiple files
0x6B6F77616C74
  • 2,559
  • 7
  • 38
  • 65
-5
votes
1 answer

unable to compile PuTTY 0.76 on Ubuntu 20.04

I'm trying to compile PuTTY 0.76 on Ubuntu 20.04 using the directions from https://7thzero.com/blog/how-to-compile-build-putty-ubuntu-16 and am having some difficulty. My steps: wget https://the.earth.li/~sgtatham/putty/latest/putty-0.76.tar.gz tar…
neubert
  • 15,947
  • 24
  • 120
  • 212
-5
votes
3 answers

Explain variable declaration to a function in C

The following code is to calculate (base^pow)%mod Can any one explain to me the following code which involves in declaring a variable to a function i want to know the value the function assigns to the variable and how it does it. int tmp = mypow(…
Shashank K
  • 388
  • 4
  • 13
1 2 3
19
20