---
name: "PGAGetMutationAndCrossoverFlag"
section: "3"
platform: "linux"
package: "pgapack"
version: "1.0.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/PGAGetMutationAndCrossoverFlag/3"
---

# PGAGetMutationAndCrossoverFlag(3)

Returns true if mutation occurs only when crossover does.

## NAME

PGAGetMutationAndCrossoverFlag - Returns true if mutation occurs only when crossover does.

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- crossed

  \-over strings. Otherwise, returns PGA\_FALSE

## SYNOPSIS

```
#include "pgapack.h"
int  PGAGetMutationAndCrossoverFlag(ctx)
PGAContext *ctx
```

## LOCATION

pga.c

## EXAMPLE

```
PGAContext *ctx;
int mutatetype;
:
mutatetype = PGAGetMutationAndCrossoverFlag(ctx);
switch (mutatetype) {
case PGA_TRUE:
printf("Mutating strings only after crossover0);
break;
case PGA_FALSE:
printf("Only mutating strings not undergoing crossover0);
break;
}
```
